2 Replies Latest reply: Dec 15, 2011 7:11 AM by gimbal2 RSS

    A fatal error has been detected by the Java Runtime Environment:

    905554
      Hi All,
      attached JVM crash has detected while using C++ JNI interface. please help to find/debug the problem.


      Regards,
      Ashwani
      [http://pastebin.com/A3mRr9kD]

      Edited by: 902551 on Dec 15, 2011 4:56 AM
        • 1. Re: A fatal error has been detected by the Java Runtime Environment:
          EJP
          There is something wrong with your pointer usages in the native methods of your class 'h323javaclass' resulting in an invalid value of the EAX register.

          All that information is in the dump, and much more.

          It is a C/C++ programming problem, not a Java problem.
          • 2. Re: A fatal error has been detected by the Java Runtime Environment:
            gimbal2
            902551 wrote:
            Hi All,
            attached JVM crash has detected while using C++ JNI interface. please help to find/debug the problem.


            Regards,
            Ashwani
            Do realize that by adding JNI into the mix you have made your application a whole lot harder to debug. If I were forced to use native libraries, I would setup a simple testing framework built in C++ through which I can run the code in the DLL in a controlled manner (matching what the Java code does) and inspect it using a proper C++ debugger, such as the one built into Visual Studio.