hi, I am trying to access VB function using JNI. But when i execute the java code i sometimes get the "an EXCEPTION_ACCESS_VIOLATION exception has been detected in the native code outside the VM" error. This does not happen always. I get the output sometimes n sometimes even if i comment a single line n retry, I get the above error. Has it t odo with the registering of the dll files? Can anybody throw some light in this regard. Thank you.