[fpc-pascal] FPC 2.2.0 / SegF in threads

mm m2 at ellipsa.net
Thu May 15 23:55:43 CEST 2008

Damien Gerard a écrit :
> Le May 15, 2008 à 8:46 PM, Luca Olivetti a écrit :
>> I don't know about gdb, but I know that you have to be extremely careful
>> with exceptions in a thread, since any uncaught exception will silently
>> terminate it.
> It is actually the point of my problem.
> Is there any way to avoid this behavior ? Because without GDB you are 
> not aware that a thread has just exited.

Your program has to catch all the exceptions. I wrote a small demo for
NX (see on my web site) that is called "nx_demo_thread". It is very
simplistic regarding thread management but it could help you to see
how this program catches the exceptions.


More information about the fpc-pascal mailing list