thread Handle leak report

delphi package - automated exception handling

thread Handle leak report

Postby bargiotto » Mon Oct 29, 2018 5:30 pm

Hi , is there someone that can help me to understand the leak-report in the attached image.
In this application I'm using dbgo components contained in the BDS 2006 (delphi) by Borland.
Schermata 2018-10-29 alle 18.08.26.png
Schermata 2018-10-29 alle 18.08.26.png (134.38 KiB) Viewed 1122 times
Posts: 1
Joined: Mon Oct 29, 2018 5:19 pm

Re: thread Handle leak report

Postby madshi » Tue Nov 13, 2018 6:28 pm

It seems that CreateADOObject internally calls CoCreateInstance which results in RPCRT4.dll doing some stuff which ends up calling "CreateThread", and this thread handle seems to still be open at the time your application closes. This very much looks like either intended behaviour, or an intended "leak" (leaks are not really a big problem if they don't accumulate over time, so sometimes code intentionally leaks something).

In any case, it's RPCRT4.dll which is causing the leak, and most probably your code is not at fault, so you can safely ignore this reported leak.
Site Admin
Posts: 10209
Joined: Sun Mar 21, 2004 5:25 pm

Return to madExcept

Who is online

Users browsing this forum: Google [Bot] and 7 guests