问题描述
JNativen=null;n=demo.getJNativeByFunction("InitDLL");n.setRetVal(Type.INT);HWNDhwnd=newHWND(0);n.setParameter(0,hwnd.getValue());n.invoke();如此调用报错:-----------------------------------------------------------------------------------##AnunexpectederrorhasbeendetectedbyJavaRuntimeEnvironment:##EXCEPTION_ACCESS_VIOLATION(0xc0000005)atpc=0x10001717,pid=4884,tid=3356##JavaVM:JavaHotSpot(TM)ClientVM(11.0-b15mixedmode,sharingwindows-x86)#Problematicframe:#C[Canon.dll+0x1717]##Anerrorreportfilewithmoreinformationissavedas:#D:workSpacesnWork2CanonScanhs_err_pid4884.log##Ifyouwouldliketosubmitabugreport,pleasevisit:#http://java.sun.com/webapps/bugreport/crash.jsp#ThecrashhappenedoutsidetheJavaVirtualMachineinnativecode.#Seeproblematicframeforwheretoreportthebug.