[fpc-devel] Exceptions in threads
Florian Klaempfl
florian at freepascal.org
Thu Dec 11 15:21:15 CET 2008
Mattias Gärtner schrieb:
>> raised ?
>
> It should be raised in the starter thread. The question is how to
> - stop an exception in a thread (try..except)
> - give it to another thread - the starter thread (giving the object is easy, but
> ...)
> - continue the helper thread (this will normally free the exception object, I
> need a way to avoid this automatism)
This is why I told you to have a look how Synchronize works ;) Hint:
AcquireExceptionObject/ReleaseExceptionObject which implement simply
ref. counting which is respected by the exception handling code.
More information about the fpc-devel
mailing list