[fpc-devel] Exceptions in threads

Florian Klaempfl florian at freepascal.org
Wed Dec 10 19:31:08 CET 2008


Mattias Gärtner schrieb:
> I'm writing a unit to simplify parallel methods/procedures.
> 
> For example:
>   DoParallel(@AMethod,StartIndex,EndIndex,Data);
> 
> The AMethod is executed with several threads in parallel.
> 
> What should happen when an exception occurs?
> It would be nice if the exception can be transfered to the main thread.
> Is this possible? How?

See synchronize/checksynchronize implementation.



More information about the fpc-devel mailing list