Issue
I am having an issue in an android native library I am creating that is dependant on another 3rd party library.
I am using a proprietary Android POS terminal (Android Lollipop API 22). It comes with a proprietary native library ".so" and I am wrapping that library with my own native code that will be called from Android Java.
The issue I have, is when my code throws a c++ exception that is caught inside the native library (that is, I am not throwing an exception to java) the application crashes with SIGSEGV fatal error at the throw statement.
If I take the 3rd party native library out of the link, I can throw and catch exceptions all I want. Add back the ".so" library, and any throw causes a crash.
Any idea how to troubleshoot or resolve the issue?
Solution
It turns out, the issue was the third party library. If a native library is built without exceptions, then code that calls that library also cannot use exceptions.
Very frustrating.
Answered By - Colin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.