Reporting resource leaks in Windows service

delphi package - automated exception handling
Post Reply
jonathanw
Posts: 2
Joined: Wed Jan 22, 2020 12:42 pm

Reporting resource leaks in Windows service

Post by jonathanw »

Hi,
I'm using madExcept to report resource leaks in Delphi EXEs, and I can see that when a leak is found in a regular desktop EXE it writes the details to a text file (.mbr) on the Windows desktop. However I now want to track down a leak in a Windows service EXE, and I can't find where the details are reported. I can't see a file created on the desktop, or in the same folder as the service EXE. Where should I be looking? I have the usual setting recommended for service applications : exception filter-->all other exception classes-->don't show anything. I have purposely made a leak so I know it should be reporting something.

Many thanks,
Jonathan
madshi
Site Admin
Posts: 10838
Joined: Sun Mar 21, 2004 5:25 pm

Re: Reporting resource leaks in Windows service

Post by madshi »

Try calling this API exported by madExcept.pas:

Code: Select all

// Force leak reporting to save the report to a specific file.
// The report will always be saved and not displayed in the viewer.
procedure SetLeakReportFile (const leakReportFile: UnicodeString);
jonathanw
Posts: 2
Joined: Wed Jan 22, 2020 12:42 pm

Re: Reporting resource leaks in Windows service

Post by jonathanw »

Thank you so much, that's sorted it!
Post Reply