I wrote a piece of software in Java that communicates with USB hardware using a DLL provided by the hardware vendor. I used Java Native Access to write wrappers in native code. Sometimes, when I run it, only to the native functions related to the code, the JVM crashes, and I can not find the cause of the error, because this happens in the native code, to which I do not have the source code (MSVCRT71.DLL).
I have been a Linux developer most of the time, so I'm not used to this situation. What can I do to connect a debugger from outside (say, Visual C ++) to the JVM process and get something meaningful from it (that is, not Assembly instructions)?
source
share