Jul 30, 2008 11:45 AM
Exception when I try to call an external DLL function
Hi!
I want to call the AFPL GhostScript 8.54 dll (gsdll32.dll) functions from java. But I've got problem with that function:
int GSDLLAPI gsdll_init(GSDLL_CALLBACK callback, HWND hwnd, int argc, char *argv[]);
If I try to call it with needed or null parameters (see attachment) the following exception thrown:
Exception c0000005, at 0BDD4D9C
Access violation: attempting to write memory at address B109419F
Native function stack data: 0,afe5f48,d0ab4,1,afe5fa8,afe5910,40002,c00f1,afe0188,afe5f10,20009,a01f3,0,540046,410057,450052,41005c,500046,20004c,680047
com.jniwrapper.FunctionExecutionException: c0000005
Maybee the parameters are not good? All other functions are working.
My system is: WinXP SP3, JDK 1.6.0.07, JExplorer 1.8 package
Regards,
Norbert Proszenyák