[fpc-devel] Exceptions in threads

Florian Klaempfl florian at freepascal.org
Thu Dec 11 16:16:58 CET 2008


Mattias Gärtner schrieb:
> Zitat von Michael Van Canneyt <michael at freepascal.org>:
> 
>> [...]
>> This is the problem: At which point should this be done ?
>>
>> Can you point at the statement where it should be raised in the following
>> code:
>>
>>  try
>>    ...
>>    DoParallel(...);
>>    ...
>>  except
>>  end;
>>
>> There is only 1 possible location: in a waitloop which should be after the
>> DoParralel. This loop must check for the exceptions...
> 
> Not after, but at the end of DoParallel.

What happens if more threads throw an exception?



More information about the fpc-devel mailing list