[fpc-pascal] FPC 2.2.0 / SegF in threads

Damien Gerard milipili at shikami.org
Fri May 16 09:55:04 CEST 2008

Le May 15, 2008 à 11:55 PM, mm a écrit :

> 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.

Oki I see you use a double try statement in the execute method.

Damien Gerard
milipili at shikami.org

"Intelligence is 10 million rules."
    -- Douglas Lenat

More information about the fpc-pascal mailing list