JNI EXCEPTION_ACCESS_VIOLATION
- From: "esandfort" <edward.e.sandfort@xxxxxxxx>
- Date: 10 Aug 2006 08:47:39 -0700
I have a java application which calls into a VC++ DLL via JNI. Within
the DLL, I call some code via a 3rd party API which ultimately does
some disk IO. When the "File Writing" code is hit, my application
crashes. I get the following error (I'll spare you the entire dump)
An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
PC=0x7C9111DE
Function=wcsncpy+0x74F
Library=C:\WINDOWS\system32\ntdll.dll
Here are a couple of interesting points...
The code will crash when running under XP Service Pack 2
The code will NOT crash when running under Windows 2000 Service Pack 4
When running on XP, the code will crash if the java progam makes either
of the following calls before making the JNI call:
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
- or -
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
When running on XP, the code will NOT crash if I omit the
setLookAndFeel() call all together, or use an alternate L&F (Metal for
example)
I have spent the past couple of days trying to find clues to this
problem on the newsgroups, and have had absolutely no luck.
If anyone has any experience with this problem, I would appreciate any
leads.
Also - if anyone could recommend any tools and/or techniques that would
be useful in debugging a VM crash such as I described above, that would
be appreciated as well.
Thanks!
Ed Sandfort
.
- Follow-Ups:
- Re: JNI EXCEPTION_ACCESS_VIOLATION
- From: Inácio Ferrarini
- Re: JNI EXCEPTION_ACCESS_VIOLATION
- From: Gordon Beaton
- Re: JNI EXCEPTION_ACCESS_VIOLATION
- Prev by Date: Re: String.valueOf() Memory Leak inside of thread.
- Next by Date: Problem with sending a POST request
- Previous by thread: SocketTimeoutException: Read timed out
- Next by thread: Re: JNI EXCEPTION_ACCESS_VIOLATION
- Index(es):
Relevant Pages
|