raise TObject - RegisterHiddenExceptionHandler
raise TObject - RegisterHiddenExceptionHandler
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
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
Strange stuff. Is the Outline Control part of the VCL? Or is it a 3rd party control?
Re: raise TObject - RegisterHiddenExceptionHandler
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.
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
I've no experience with the outline control. Can you upload a very simple and small test project?
Re: raise TObject - RegisterHiddenExceptionHandler
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.
When you press "Nicht abgefangen Exception" the EAccessViolation happens.
- Attachments
-
- Hidden.zip
- (17.99 KiB) Not downloaded yet
Re: raise TObject - RegisterHiddenExceptionHandler
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
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.
I have tested with Delphi 11 and MadExcept 5.0 and it works also for me.
thanks for your time.
Re: raise TObject - RegisterHiddenExceptionHandler
I assume it's probably something I fixed in madExcept 5, either intentionally or accidently... 
