C++ Terminate the J2Play GDK Library
From J2Play
Terminate the J2Play GDK Library
After the game and the J2Play community wrapper are closed, you need to unregister event hooks, and call the Destroy() to terminate J2Play library and free resource.
CGDKInstance* j2play = CGDKInstance::GetInstance(); UnregisterHooks(j2play); // unregister the event hooks, change it according actual class you used for event receiver j2play->Destroy();
MFC: Add above code into ExitInstance() of your application class (the class derived from CWinApp)
WIN32: Add above code right after the get/translate/dispatch message loop.
