Hi,
Currently MadExcept dialogue box appears for all unhandled exceptions. Is that possible to catch and display dialogue only for Access Violation Exception??
Please help!
MADExcept must catch Access Violation Only
Re: MADExcept must catch Access Violation Only
Sure:
Code: Select all
uses madExcept;
procedure YourExceptionFilter(const exceptIntf: IMEException; var handled: boolean);
begin
if exceptIntf.ExceptClass <> 'EAccessViolation' then
handled := true;
end;
initialization
RegisterExceptionHandler(YourExceptionFilter, stDontSync, epQuickFiltering);
end.
Re: MADExcept must catch Access Violation Only
P.S: The above code will silently ignore all non-access-violations. If you want to get a normal message box for non-access violations, you can replace "handled := true" with "exceptIntf.GeneralShowSetting := ssSimpleBox".
Re: MADExcept must catch Access Violation Only
Hi,
Thanks for help. It works perfectly...
Thanks for help. It works perfectly...