On 07 Feb 2007, at 22:06, m utku wrote:
Basically I want to get a stack trace and log it when a special
exception occurs.
There's
Procedure Dump_Stack(var f : text;bp:pointer);
in the system unit. You can use it like this:
dump_stack(stdout,get_frame);
to dump the current call stack to standard output (or to any other
text file by replacing stdout with something else).
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal