LinkTerminated without linked thread?
Ali Çehreli
acehreli at yahoo.com
Fri Jan 25 09:13:29 PST 2013
On 01/24/2013 02:57 AM, Stephan wrote:
> How can I report an Error or an Exception thrown in a child-thread?
> Should I wrap the whole function that is spawned in a try-catch
> statement to print any exception manually?
You can send the exception as a message as well:
// at the worker:
try {
// ...
} catch (shared(Exception) exc) {
owner.send(exc);
}},
// at the owner:
receive(
// ...
(shared(Exception) exc) {
// ...
});
Ali
More information about the Digitalmars-d
mailing list