summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-18 01:41:30 +0200
committerSven Gothel <[email protected]>2013-06-18 01:41:30 +0200
commit4feb65517ae4a4e2b9b04cdfc4b85582cb8b9784 (patch)
treeb043abfa0ae00ed3915862730e35ef15c9f7f630 /src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
parente18771cc020f6fd42f6427540c079e48699ab310 (diff)
Robostness: Catch Throwables on NativeLibrary.open(..) and be verbose in DEBUG mode ; DynamicLinker: Add 'String getLastError()'.
Diffstat (limited to 'src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java')
-rw-r--r--src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java b/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
index 17d4adc..884ac39 100644
--- a/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
+++ b/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
@@ -66,4 +66,9 @@ public class WindowsDynamicLinkerImpl implements DynamicLinker {
FreeLibrary(libraryHandle);
}
+ public String getLastError() {
+ final int err = GetLastError();
+ return "Last error: 0x"+Integer.toHexString(err)+" ("+err+")";
+ }
+
}