need to load pdh.dll before sigar.dll

This commit is contained in:
Doug MacEachern 2004-11-22 02:20:26 +00:00
parent 23c0f55080
commit 84ca523e7b
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,6 @@ public class Sigar implements SigarProxy {
private static void load() throws SigarException { private static void load() throws SigarException {
try { try {
loader.load();
if (SigarLoader.IS_WIN32 && if (SigarLoader.IS_WIN32 &&
System.getProperty("os.version").equals("4.0")) System.getProperty("os.version").equals("4.0"))
{ {
@ -68,6 +67,7 @@ public class Sigar implements SigarProxy {
File.separator + "pdh.dll"; File.separator + "pdh.dll";
loader.systemLoad(lib); loader.systemLoad(lib);
} }
loader.load();
} catch (ArchNotSupportedException e) { } catch (ArchNotSupportedException e) {
throw new SigarException(e.getMessage()); throw new SigarException(e.getMessage());
} catch (ArchLoaderException e) { } catch (ArchLoaderException e) {