Skip to content
Advertisement

Closing a Panda3d app without shutting down the whole Process

wrote a small application which is composed of a QT GUI module which in turn initiate an object that inherits from ShowBase class.

Problem is, if I close the Panda App, the ShowBase class calls finalizeExit() which in turn shuts the whole process by calling exit.

If I avoid calling the finalize method by overriding userExit(), the resources for the App are not being deleted and the task manager keeps on working.

Is there a way to close the Panda App without calling exit?

Advertisement

Answer

At least in recent development builds of Panda, you should be able to call base.destroy() to shut down ShowBase and unload (most) resources. You would still need to override finalizeExit() to not quit the application when the main window is closed.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement