You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I get an IllegalArgumentException when calling a method in a com dll.
My code is the following: IManager manager = ClassFactory.createManager(); String bstrFile = "1.xml"; String pbstrSchema=new String(); Holder<IRequest> ppIRequest = new Holder<IRequest>(); Holder<IResult> ppIResult = new Holder<IResult>(); manager.load(bstrFile, pbstrSchema, ppIRequest, ppIResult);
The C/C++ Interface has the following signature HRESULT load(BSTR bstrFile, BSTR *pbstrSchema, IRequest **ppIRequest, IResult **ppIResult)
Stacktrace:
Exception in thread "main" com4j.ExecutionException: java.lang.IllegalArgumentException
at com4j.ComThread.execute(ComThread.java:236)
at com4j.Task.execute(Task.java:40)
at com4j.Wrapper$InvocationThunk.invoke(Wrapper.java:345)
at com4j.Wrapper.invoke(Wrapper.java:184)
at com.sun.proxy.$Proxy3.loadXML(Unknown Source)
at test.DllCall.DllCall.main(DllCall.java:25)
Caused by: java.lang.IllegalArgumentException
at com4j.Wrapper.<init>(Wrapper.java:82)
at com4j.Wrapper.create(Wrapper.java:98)
at com4j.NativeType$5.toJava(NativeType.java:279)
at com4j.StandardComMethod.invoke(StandardComMethod.java:55)
at com4j.Wrapper$InvocationThunk.call(Wrapper.java:356)
at com4j.Task.invoke(Task.java:50)
at com4j.ComThread.run0(ComThread.java:172)
at com4j.ComThread.run(ComThread.java:153)
Any idea what could be wrong?
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Hi
I get an IllegalArgumentException when calling a method in a com dll.
My code is the following:
IManager manager = ClassFactory.createManager();
String bstrFile = "1.xml";
String pbstrSchema=new String();
Holder<IRequest> ppIRequest = new Holder<IRequest>();
Holder<IResult> ppIResult = new Holder<IResult>();
manager.load(bstrFile, pbstrSchema, ppIRequest, ppIResult);
The C/C++ Interface has the following signature
HRESULT load(BSTR bstrFile,
BSTR *pbstrSchema,
IRequest **ppIRequest,
IResult **ppIResult)
Stacktrace:
Any idea what could be wrong?
Thanks for your help!
The text was updated successfully, but these errors were encountered: