When an exception occurs i want to save internal log data which i have collected.
When the madExcept window is shown, it's already too late, because in many cases the program cannot continue.
Is there an event like OnBeforeMadExceptWindowShow or do i have to use a Callback?
Can someone provide a Delphi code snippet to do this?
Thank you.
Before madExcept window appears i want to write a log file
Re: Before madExcept window appears i want to write a log fi
You can use madExcept.RegisterExceptionHandler to register a callback which is called for every exception. If you use the "epQuickFiltering" parameter, your handler should be called before the exception box is shown. A little sample code (though not with the exact parameters you need) is shown at the bottom of this page:
http://help.madshi.net/HowToUseMadExcept.htm
http://help.madshi.net/HowToUseMadExcept.htm
Re: Before madExcept window appears i want to write a log fi
Thank you! Very fast and useful answer!!