Callstack from inc-file

delphi package - automated exception handling
Post Reply
Berocoder
Posts: 9
Joined: Fri May 03, 2019 11:25 am

Callstack from inc-file

Post by Berocoder »

Hi, my team use Bold for Delphi as ORM framework. That is a bit special as it use a generated file businessClasses.pas for all modeled code.
As that file can be very large for a big model the code is located in inc-files.

So the problem we have now is that callstack contains references to businessClasses not the inc-file with the actual code.
And this works with our previous exceptionhandler JCL.

You should be able to reproduce it if you include an inc-file with some code and raise exception there.
I made a small demo and unitname was pas-file not the inc-file as I wanted.
The incDemo is attached to this post.
It would be great if you can fix it because MadExcept is better than JCL in other aspects.
But as this is critical for us we have to revert to JCL in the meantime.

Btw we have talked about rewrite codegeneration to use standard pas-files instead. But that is a big project and current solution works so...

EDIT
A collegue actually said he used MadExcept a couple of years ago and then it worked with inc-files.
Could it be that this feature was gone by mistake as it is not common to place code there ?

Regards
Roland Bengtsson
Attachments
IncDemo.zip
(5.67 KiB) Downloaded 279 times
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: Callstack from inc-file

Post by madshi »

Moved to email support.
Post Reply