This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!