nativelibs4java / BridJ

BridJ: blazing fast Java / C / C++ interop
https://code.google.com/archive/p/bridj/
Other
299 stars 77 forks source link

COMRuntime.newInstance() RuntimeException #94

Open robross0606 opened 7 years ago

robross0606 commented 7 years ago

Calling COMRuntime.newInstance(ITaskbarList3.class) is throwing a RuntimeException:

Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: Unexpected COM error code : -2147417850
    at org.bridj.cpp.com.COMRuntime.error(COMRuntime.java:197)
    at org.bridj.cpp.com.COMRuntime$1.initialValue(COMRuntime.java:231)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
    at java.lang.ThreadLocal.get(ThreadLocal.java:170)
    at org.bridj.cpp.com.COMRuntime.initialize(COMRuntime.java:254)
    at org.bridj.cpp.com.COMRuntime.newInstance(COMRuntime.java:262)
    at org.bridj.cpp.com.COMRuntime.newInstance(COMRuntime.java:258)

Environment: