I am running JDK 1.3 in a Windows NT machine. I am getting an EXCEPTION_ACCESS_VIOLATION error when running my programs as a user, not when I am in Administrator mode. The error happens when I am trying to add a new JButton component to the ContentPane of a Window. The actual error looks like this (Dr. Watson): An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM. Program counter=0x502032cf I know this is more of a Windows question rather than a JAVA question, but both are related here. Any suggestions on how I can get rid of these messages? Ed.
Originally posted by Apu Nahasapeemapetilon: Show me the code causing this problem and I may be able to help. Gotta go get me a squishee....
Hi I am experiencing the same problem. I am calling C++ native method in java. and in c++ I am again calling DLL of other plugin software. Program goes into the C++ but as soon as it reaches the function call of plugin software, it gives this EXCEPTION_ACCESS_VIOLATION. Here is my code import java.util.*; public class AA extends GregorianCalendar { public static native void printmyvalues(String[] dd); public String getdate() { return String.valueOf(super.getTimeInMillis()); }
static { System.loadLibrary("nrg1"); } public static void main(String args[]) { AA mm = new AA(); // GregorianCalendar gc = new GregorianCalendar(); String orderid = mm.getdate(); orderid = orderid + "merchant" + "Neetu"; String[] dd = new String[6]; dd[0] = orderid; dd[1] = "1234.45"; dd[2] = "Neetu"; dd[3] = "85 Royal Drive # 424"; dd[4] = "12/00"; dd[5] = "4111111111111111"; // String[] xx = new String[20]; try { mm.printmyvalues(dd); }catch(Exception e){System.out.println("Caught exception ");} /* System.out.println("This is testing"); for(int i = 0;i<xx.length;i++)> System.out.println(i+"th String passed from the c++ program is "+xx[i]);*/ } }