Stack trace AFTER a call to TRttiMethod.Invoke

delphi package - automated exception handling
Post Reply
MagoSchmidt
Posts: 1
Joined: Tue Jun 08, 2021 3:20 am

Stack trace AFTER a call to TRttiMethod.Invoke

Post by MagoSchmidt »

Hi, Mathias!

Do you know if exception stack trace is lost through an "invoke" call? There is any way to get the entire stack trace?

I have an exception ocurring AFTER a call to TRttiMethod.Invoke method and stack trace returns a report only until that invoke call, losing inner stack trace

Thank you for any help.

Best Regards
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Stack trace AFTER a call to TRttiMethod.Invoke

Post by madshi »

Hi there, I've already replied via email. Here's the reply for other people reading here:

-------

My best guess would be that there's a try..except block internally
somewhere which catches the exception and later re-raises it.

What happens if you use madExcept.RegisterHiddenExceptionHandler(). See here:

http://help.madshi.net/madExceptUnit.ht ... ionHandler

Maybe this way you can get full stack traces? However, this way you'll
be notified about all exceptions, even some you might not want to see.
Post Reply