Search found 21 matches
- Mon Apr 08, 2024 9:56 am
- Forum: madExcept
- Topic: Leak reporting not working - help to debug
- Replies: 4
- Views: 99
Re: Leak reporting not working - help to debug
Infuriatingly, it just started to work this morning. I added a couple of CodeSite messages to check on a couple of things and everything sprung in to life. Don't you just hate it when that happens !!!
- Fri Apr 05, 2024 11:42 am
- Forum: madExcept
- Topic: Leak reporting not working - help to debug
- Replies: 4
- Views: 99
Leak reporting not working - help to debug
I have a delphi console app (script engine) which has leak detecting enabled. This app runs a script written by the end user. I have a second delphi app (WebServer) that can either be run as a GUI app or as a service. The WebServer app, calls the script engine app (using CreateProcess). If the scrip...
- Tue Apr 02, 2024 9:35 pm
- Forum: madExcept
- Topic: Leak Detecting
- Replies: 2
- Views: 107
Re: Leak Detecting
Ah, seems this does what I want
Code: Select all
SetLeakReportFile ('c:\test\leaks.mbr');
ShowLeakProgressWindow (false);
ShowNoLeaksWindow (false);
- Tue Apr 02, 2024 6:27 pm
- Forum: madExcept
- Topic: Leak Detecting
- Replies: 2
- Views: 107
Leak Detecting
I'd like to use leak detecting in my Command line delphi app, outputting the leak info to a file (in a specific folder) rather than a GUI. If this possible please ?
Cheers
David
Cheers
David
- Thu Aug 31, 2023 11:37 am
- Forum: madExcept
- Topic: Access Violation in MadExcept32.dll
- Replies: 3
- Views: 31649
Re: Access Violation in MadExcept32.dll
FYI
Changing the initial chunk size to 25 MB cured the AV.
David
Changing the initial chunk size to 25 MB cured the AV.
David
- Wed Aug 30, 2023 2:53 pm
- Forum: madExcept
- Topic: Access Violation in MadExcept32.dll
- Replies: 3
- Views: 31649
Re: Access Violation in MadExcept32.dll
Hi
Actually in this case only 160 MB
lChunkSize := File_Stream.Size;
The 1GB limit is for stupid sized files.
I'll try and reduce the size when leak checking to see if that addresses the issue, assuming there's no way to turn off leak checking for a specific method ?
David
Actually in this case only 160 MB
lChunkSize := File_Stream.Size;
The 1GB limit is for stupid sized files.
I'll try and reduce the size when leak checking to see if that addresses the issue, assuming there's no way to turn off leak checking for a specific method ?
David
- Wed Aug 30, 2023 11:55 am
- Forum: madExcept
- Topic: Access Violation in MadExcept32.dll
- Replies: 3
- Views: 31649
Access Violation in MadExcept32.dll
The following code causes an AV in Madexcept32.dll I've tried calling MadExcept.StopLeakChecking before this routine, but it makes no difference (turning off leak checking completely lets the code runs fine) . Any suggestions ? lNoMem := true; if File_Stream.Size > high(Integer) then lChunkSize := 1...
- Thu Aug 24, 2023 10:22 pm
- Forum: madExcept
- Topic: Hiding a leak
- Replies: 3
- Views: 9417
Re: Hiding a leak
Thanks.
Could I do that before the leak report is displayed or do you mean doing something afterwards ?
Cheers
David
Could I do that before the leak report is displayed or do you mean doing something afterwards ?
Cheers
David
- Thu Aug 24, 2023 8:37 pm
- Forum: madExcept
- Topic: Hiding a leak
- Replies: 3
- Views: 9417
Hiding a leak
Is there anyway to hide a leak based on the callstack AND the size ? I'm currently hiding this leak madexcept.HideLeak('VirtualAllocCallback|TnxMemoryStream.msRealloc'); but the scenarios where it's a false positive are where the leak is exactly 4096 bytes. If it's any more or any less then I need t...
- Thu Aug 24, 2023 2:13 pm
- Forum: madExcept
- Topic: Leak not being detected.
- Replies: 2
- Views: 5321
Re: Leak not being detected.
Odd. Fixed a few real leaks and now this leak is showing ... Computers eh?!
- Thu Aug 24, 2023 12:19 pm
- Forum: madExcept
- Topic: Leak not being detected.
- Replies: 2
- Views: 5321
Leak not being detected.
I've added the following code to my form, but it's not showing up as a leak (other leaks are). What might be wrong ? procedure TMainGUI_Form.FormShow(Sender: TObject); var lLeakCheckList : TStringlist; begin lLeakCheckList := TStringList.Create; lLeakCheckList.Add('Expect to see this leak'); showmes...
- Thu Aug 24, 2023 12:05 pm
- Forum: madExcept
- Topic: Leak detection from command line compiler
- Replies: 2
- Views: 5249
- Thu Aug 24, 2023 9:16 am
- Forum: madExcept
- Topic: Leak detection from command line compiler
- Replies: 2
- Views: 5249
Leak detection from command line compiler
I'm sure this should be obvious, but I can't work out how to turn on leak detection when building via the command line compiler. Is it just sufficient to add the LeakChecking conditional define ?
- Fri Feb 12, 2021 4:59 pm
- Forum: madExcept
- Topic: Displaying first exception message
- Replies: 2
- Views: 3096
Re: Displaying first exception message
Maybe it would make sense to add a try..except block to catch the "The operation could not be completed in the allotted time" exception and handle it more nicely? and that has made me realise what the error actually is. There is an exception handler and it's in that exception handler that...
- Thu Feb 04, 2021 10:00 am
- Forum: madExcept
- Topic: Displaying first exception message
- Replies: 2
- Views: 3096
Displaying first exception message
Using MadExcept V5 + Delphi Sydney. A user just sent me the following Madexcept report, asking how could we have created a situation where a database wasn't initialised correctly. Looking at the report I can see that although the TDataset is reporting Dataset not in edit or insert mode , really the ...