From 84ca523e7b9e7895f36c925794deb9375c178c4e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 22 Nov 2004 02:20:26 +0000 Subject: [PATCH] need to load pdh.dll before sigar.dll --- bindings/java/src/net/hyperic/sigar/Sigar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/net/hyperic/sigar/Sigar.java b/bindings/java/src/net/hyperic/sigar/Sigar.java index 302b2ecc..1c89c4cd 100644 --- a/bindings/java/src/net/hyperic/sigar/Sigar.java +++ b/bindings/java/src/net/hyperic/sigar/Sigar.java @@ -59,7 +59,6 @@ public class Sigar implements SigarProxy { private static void load() throws SigarException { try { - loader.load(); if (SigarLoader.IS_WIN32 && System.getProperty("os.version").equals("4.0")) { @@ -68,6 +67,7 @@ public class Sigar implements SigarProxy { File.separator + "pdh.dll"; loader.systemLoad(lib); } + loader.load(); } catch (ArchNotSupportedException e) { throw new SigarException(e.getMessage()); } catch (ArchLoaderException e) {