This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Филипп Пономарев
Recipients paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware, Филипп Пономарев
Date 2016-08-15.04:51:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471236662.97.0.730394827697.issue27734@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2016-08-15 04:51:03Филипп Пономаревsetrecipients: + Филипп Пономарев, paul.moore, tim.golden, r.david.murray, zach.ware, steve.dower
2016-08-15 04:51:02Филипп Пономаревsetmessageid: <1471236662.97.0.730394827697.issue27734@psf.upfronthosting.co.za>
2016-08-15 04:51:02Филипп Пономаревlinkissue27734 messages
2016-08-15 04:51:02Филипп Пономаревcreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.