Exception isn't thrown as expected

Alexandr Druzhinin drug2004 at bk.ru
Mon Jun 3 00:30:48 PDT 2013


03.06.2013 12:26, Ali Çehreli пишет:
> On 06/02/2013 08:23 PM, Alexandr Druzhinin wrote:
>
>  > I found that after calling
>  > std.concurrency.spawn() template - exceptions stop throwing, but if I
>  > add little delay in beginning of spawned thread about 100 ms - it'd
>  > works again and exceptions would be thrown again... :(
>
> Is the exception thrown by a child thread? If so, perhaps that is
> causing the child to terminate. Also, the parent cannot catch a child's
> exception automatically.
>
> Ali
>
no, the main thread do it. But even if child thread throws an exception, 
should it print some diagnostic message to clear that it crashed or no? 
Because my app just hangs up and nothing more, no message, no 
complaints, nothing.


More information about the Digitalmars-d-learn mailing list