How to get exception information

delphi package - automated exception handling

How to get exception information

Postby jcta » Wed Aug 30, 2017 6:52 pm

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
jcta
 
Posts: 2
Joined: Wed Aug 30, 2017 6:50 pm

Re: How to get exception information

Postby madshi » Wed Aug 30, 2017 7:56 pm

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

http://help.madshi.net/madMapFileUnit.h ... pFileInfos
madshi
Site Admin
 
Posts: 9472
Joined: Sun Mar 21, 2004 5:25 pm

Re: How to get exception information

Postby jcta » Thu Aug 31, 2017 12:48 pm

Thank you so much!

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

John
jcta
 
Posts: 2
Joined: Wed Aug 30, 2017 6:50 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 3 guests

cron