Филипп Пономарев added the comment:
Hmm. Correct me if I'm not right.
You agree that you have leaks, but you will not do anything with them until
they start repeat in a loop? So I've updated problem.
Thnx about nosy, idk.
What I want is to use Python API without leaks in my programm.
The problem is here:
1. I've created test.dll, which is static linked with Python. I've function
tstf there:
void tstf()
{
Py_Initialize();
Py_Finalize();
}
(ofcourse I've imported it in source.def - tstf @1)
And I have main dll:
typedef void(*vv)();
void exec()
{
HMODULE hModule = ::LoadLibrary(L"d:\\PATH_TO_TEST.dll");
vv fnc = (vv)::GetProcAddress(hModule, "tstf");
(*fnc)();
::FreeLibrary(hModule);
}
int main
{
exec();
//exec();
//exec();
}
So I get more leaks because of more call exec() function.
Waiting for your answer, than you!
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27734>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com