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
[EMAIL PROTECTED]

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





_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to