Get StackTrace for Exception
Get StackTrace for Exception
Hello,
I would like to do the following:
try
{
...
some code that could generate exceptions
...
}
catch(Exception& e)
{
-> show the stacktrace that matches the exception
}
How could I do this ?
regards,
Bart
I would like to do the following:
try
{
...
some code that could generate exceptions
...
}
catch(Exception& e)
{
-> show the stacktrace that matches the exception
}
How could I do this ?
regards,
Bart
Re: Get StackTrace for Exception
How do you want to "show" the stack trace? MessageBox? Writing to a log?
Re: Get StackTrace for Exception
Write to own log file.
Re: Get StackTrace for Exception
So, basically, just get it as a string
Re: Get StackTrace for Exception
Then please use "GetCrashStackTrace()" exported by madExcept.pas:
http://help.madshi.net/madExceptUnit.ht ... StackTrace
http://help.madshi.net/madExceptUnit.ht ... StackTrace
Re: Get StackTrace for Exception
Thx, I will try that tomorrow.
Re: Get StackTrace for Exception
Thanks,
It is exactly what I wanted !
regards,
Bart
It is exactly what I wanted !
regards,
Bart