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.
mm
--
http://www.ellipsa.net/
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal