JNI crash Java and generates strange file - hs_err_pidxxx.log

C

column

Hello,

I have developed windows application that calls java application using
JNI. During this procedure application crashes and hs_err_pidxxx.log
(xxx- any numbers) file is generated. I don't know from which part I
should look for problem? Is it bug in windows or java application?

Thank You
 
N

New Java 456

Hello,

I have developed windows application that calls java application using
JNI. During this procedure application crashes and hs_err_pidxxx.log
(xxx- any numbers) file is generated. I don't know from which part I
should look for problem? Is it bug in windows or java application?

Thank You

Probably you have not setup the objects properly and they are used by
the Java code. E.g. the objects may not be created. You should write a
"driver" program in Java and run the Java code that way to make sure
the Java code is solid. And write a "stub" program in your C/whatever
to ensure your Windows code is solid. Then put them together. Single
step until the call to Java. If it blows up there, then you'll know.

HTH,
tim
 
C

column

Probably you have not setup the objects properly and they are used by
the Java code. E.g. the objects may not be created. You should write a
"driver" program in Java and run the Java code that way to make sure
the Java code is solid. And write a "stub" program in your C/whatever
to ensure your Windows code is solid. Then put them together. Single
step until the call to Java. If it blows up there, then you'll know.

HTH,
tim
Hello,

Probably you have not setup the objects properly I'm using several static class functions and I don't need to create objects except JEnv and JavaVM. I found that crash happens while java is trying to make some not danger and simple peace of code. If I skip this part of code - it will blow somewhere in late code. In case of executing this code from java "driver" - everything goes fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top