• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FATAL ERROR in native method: Bad global or local ref passed to JNI

 
Weili Ong
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have gotten this error when setting the -Xcheck:jni option, and calling my native method.

The error is :
FATAL ERROR in native method: Bad global or local ref passed to JNI

I shall paste the native method (C code) here, hope that anybody who knows what is wrong with this piece of code, will enlighten me. Thank you.


Thanks a lot.

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic