Leak report - InitializeCriticalSection

delphi package - automated exception handling

Leak report - InitializeCriticalSection

Postby lxo » Thu Jul 30, 2020 11:31 am

every time I get the leak report with MadExcept in Delphi, with two entries "InitializeCriticalSection".

The trigger seems to be the initialization part of IdStack.pas and IdThread.pas.

If I deactivate MadExcept and only activate ReportMemoryLeaksOnShutdown in Delphi I get no message about the leaks.
Posts: 1
Joined: Thu Jul 30, 2020 11:26 am

Re: Leak report - InitializeCriticalSection

Postby madshi » Thu Jul 30, 2020 11:47 am

These are true leaks. But they're resource leaks, not memory leaks. ReportMemoryLeaksOnShutdown only checks for memory leaks.

With the latest madExcept update:


... you can call "madExcept.HideInitializationLeaks()" to hide any leaks that occur within any unit "initialization" sections, if you so prefer.
Site Admin
Posts: 10319
Joined: Sun Mar 21, 2004 5:25 pm

Return to madExcept

Who is online

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