How to get exception information

delphi package - automated exception handling
Post Reply
jcta
Posts: 4
Joined: Wed Aug 30, 2017 6:50 pm

How to get exception information

Post by jcta »

How does one go about getting the current unit name, function or procedure name and source line number from within an except...end block?

Thanks
John
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: How to get exception information

Post by madshi »

You could call this with e.g. "ExceptAddr":

http://help.madshi.net/madMapFileUnit.h ... pFileInfos
jcta
Posts: 4
Joined: Wed Aug 30, 2017 6:50 pm

Re: How to get exception information

Post by jcta »

Thank you so much!

My 66 year old brain does not work as well as it used to. :sorry:

John
Post Reply