JNA: Library function call returns java.lang.Error: Invalid memory access
问题 I am working on a java project. In my project i am using java native access(jna) to use a c library pjsip. I have successfully used some of the function. But when i try to call pj_pool_create() , i get: java.lang.Error: Invalid memory access I have searched all the related problem published on mailing list, stack overflow, github etc. But I can not get to the solution. I placed some printf in the source code of the function before compiling it. All the printf statement get printed even the