Jump to content
aehimself

MadExcept StartLeakChecking is causing random access violations

Recommended Posts

Hello,

 

I know that madshi has it's own support forum, I'm mainly looking for personal experiences. We have a large Delphi application with MadExcept purchased and integrated already. When I put the line "StartLeakChecking;" in this project, random nullpointer access violations start to happen... for example at TSpeedButtom.Glyph.Assign, because TSpeedButton.Glyph is nil. Errors do not appear without StartLeakChecking, with ReportMemoryLeaksOnShutdown := True or when debugging via DeLeaker.

I am also aware that the main purpose of MadCollection is not to detect memory leaks, it's just something added as an extra.

 

So my question is... should I stop trying and just accept that this function is flawed? Do you guys have personal experience with MadCollection's memory leak detection in large projects? Has anyone seen these random AVs too?

 

Thanks!

Share this post


Link to post

The leak detection tool is known to work well. Please post on the madExcept forum.

 

Applying Occam's Razor, you should entertain the possibility that there are defects in your program that this tool is notifying you of.

Edited by David Heffernan
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×