Invalid memory access of location 0x0 in native call by using JNI (on Mac)
I have two eclipse plugins calling one native framework indirectly: plugin A load libA.jnilib, plug B load libB.jnilib, then both libA.jnilib and libB.jnilib dynamically load the same framework and call the functions in it.
pluginA or pluginB can work well separately but when they are running at the same time, pluginB will crash at framework call with the error - "Invalid memory access of location 0x0 " .(in native codes, I can find the function pointer resolve from the framework is not NULL, but failed once call it) We need the two plugin work together but we have no rights to change the codes of pluginA since it is legacy codes. So my question is technically is there any ways I could make the pluginB call the framework s开发者_StackOverflow中文版uccessfully?
You could maybe copy the library file to another name and use that one in B.
精彩评论