Page 1 of 1

raise TObject - RegisterHiddenExceptionHandler

Posted: Wed Feb 23, 2022 8:22 pm
by Heiko
Hi,

i have an Problem with the old Outline Control with MadExcept.
We want to activate the HiddenExceptions for all Exceptions in our software.
In the old Outline there will be raised an OutlineError but the base class is TObject, not Exception.
MadExcept throws an AccessViolation.

Is there a nice way to fix it?
Is it possible for MadExcept to check the raised object for Exception base class?
Otherwise I have to fix it in the outline control.

thanks in advance
Heiko

Re: raise TObject - RegisterHiddenExceptionHandler

Posted: Thu Feb 24, 2022 10:34 am
by madshi
Strange stuff. Is the Outline Control part of the VCL? Or is it a 3rd party control?

Re: raise TObject - RegisterHiddenExceptionHandler

Posted: Thu Feb 24, 2022 11:43 am
by Heiko
Yes, the outline is a part of the vcl.

Very strange, the exception happens when the try except block ends.
And the raised "Exception" will ignored by the IDE and the Debugger, that's the trick.

Re: raise TObject - RegisterHiddenExceptionHandler

Posted: Fri Feb 25, 2022 2:22 pm
by madshi
I've no experience with the outline control. Can you upload a very simple and small test project?

Re: raise TObject - RegisterHiddenExceptionHandler

Posted: Mon Feb 28, 2022 7:43 pm
by Heiko
here is a little demo. I copied the construction of the outline speciality in the demo.
When you press "Nicht abgefangen Exception" the EAccessViolation happens.

Re: raise TObject - RegisterHiddenExceptionHandler

Posted: Thu Mar 03, 2022 3:37 pm
by madshi
Works for me. Which madExcept version and which Delphi version did you test this with? I've tried XE8 and the latest official madExcept build.

Re: raise TObject - RegisterHiddenExceptionHandler

Posted: Sat Mar 12, 2022 10:56 pm
by Heiko
we use Delphi 2007 and the last Version of MadExcept 4.0.21.
I have tested with Delphi 11 and MadExcept 5.0 and it works also for me.
thanks for your time.

Re: raise TObject - RegisterHiddenExceptionHandler

Posted: Sun Mar 13, 2022 9:22 am
by madshi
I assume it's probably something I fixed in madExcept 5, either intentionally or accidently... :lol: