Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI: GetLongField()  RSS feed

 
Victor Ho
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am seeing a weird behavior from GetLongField(). Before calling in JNI, I have made sure the value of the member variable in the java object is non-zero.

Once in JNI, I am able to get the correct jclass and jfieldID. Still, GetLongField() returns 0 in the native code.

Anyone knows what could make GetLongField() return a wrong value?

Thanks
Victor
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!