Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Closed
Description
Hi dear Python team,
I am a building a c/c++ application for general purpose and I would like to have in the application the possibility of running “Python” scripting code. Python has proved to be a good programming language to deal with heavy Math as in AI.
Now when I embed Python in my application things go perfect, except for memory leaks!
As a sample by just issuing the following code leaves memory leaks of around (2Mb):
#definePY_SSIZE_T_CLEAN#definePy_LIMITED_API 0x03000000#include<Python.h>#pragma comment (lib,"python3.lib")intWINAPIwWinMain(HINSTANCEhInstance,HINSTANCEhPrevInstance,PWSTRpCmdLine,intnCmdShow){Py_InitializeEx(0);//For Embeded PythonPy_FinalizeEx(); ..Morecode..return0;}
Is there something I must do to cause Python to release all resources allocated
Metadata
Metadata
Assignees
Labels
No labels