C callback with JNA makes JRE crash
问题 I'm having problems handling callbacks in JNA. I'm trying to use a C API that uses callbacks to handle several session events (logged in, logged out, connection problem...). The session object (called sp_session ) is an opaque struct. All the callbacks are registered in a sp_session_callbacks structure. According to the API, I am supposed to declare the callbacks object, and put it into a Config object that I will provide when creating the sp_session object. If I don't want to use certain