JNI Warning : Too many PopLocalFrame calls android

匆匆过客 提交于 2019-12-11 14:45:59

问题


I am developing an application and drawing SVG files, lines and images on canvas. and my issue is that when i save my diagram and re open it, it gives me the warning.

 JNI WARNING: too many PopLocalFrame calls.

does any body have any idea what is this warning says and how can i resolve it. i have goggled it around but have not got satisfactory thing.

Thanks


回答1:


Look for calls to PushLocalFrame. They should generally be paired. Most likely you're calling PopLocalFrame without a preceding PushLocalFrame.

Generally you'll only call PushLocalFrame before calling into some Java code from JNI, and PopLocalFrame afterwards. You don't have to, but it's a good way of cleaning up after the Java call if you've still got more native stuff to do.



来源:https://stackoverflow.com/questions/9275662/jni-warning-too-many-poplocalframe-calls-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!