wonder Expert Licensed User Longtime User Oct 31, 2017 #1 Note: This question concerns the way Java and/or native .so libraries work, not the Python code. I'm a little bit (very) confused. How is this possible????? I was expecting this: Py1 and Py2 should be distinct instances sharing different memory spaces, right? Last edited: Oct 31, 2017
Note: This question concerns the way Java and/or native .so libraries work, not the Python code. I'm a little bit (very) confused. How is this possible????? I was expecting this: Py1 and Py2 should be distinct instances sharing different memory spaces, right?
wonder Expert Licensed User Longtime User Oct 31, 2017 #2 Another example: The function 'fn1' of the WTF instance 'w2' should retrurn 1, not 2. Why does this happen? Is it normal? Attachments wtf.zip 21.5 KB · Views: 281 Upvote 0
Another example: The function 'fn1' of the WTF instance 'w2' should retrurn 1, not 2. Why does this happen? Is it normal?
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2017 #3 B4A Class instances do not share any memory. The problem is somewhere else. Probably in your NDK wrapper. Upvote 0
B4A Class instances do not share any memory. The problem is somewhere else. Probably in your NDK wrapper.
wonder Expert Licensed User Longtime User Nov 1, 2017 #4 My .so files are (should be) no different than any other lib utilizing the native layer. I'll try to reproduce this issue with some other library (that I didn't compile myself). Upvote 0
My .so files are (should be) no different than any other lib utilizing the native layer. I'll try to reproduce this issue with some other library (that I didn't compile myself).
wonder Expert Licensed User Longtime User Nov 1, 2017 #5 Ok, I found the answer: https://stackoverflow.com/questions/16876581/load-a-native-library-multiple-times It seems this is a "normal" thing. I already know how to solve it. Upvote 0
Ok, I found the answer: https://stackoverflow.com/questions/16876581/load-a-native-library-multiple-times It seems this is a "normal" thing. I already know how to solve it.