What reasons are known a thread stops suddenly?

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 5 06:33:55 PST 2016


On 2/5/16 2:59 AM, Ali Çehreli wrote:
> On 02/04/2016 10:41 PM, tcak wrote:
>  > On Friday, 5 February 2016 at 06:23:09 UTC, Daniel Kozak wrote:
>  >> V Fri, 05 Feb 2016 03:47:40 +0000
>  >> tcak via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
>  >> napsáno:
>  >>
>  >>> [...]
>  >>
>  >> Did you try catch Throwable instead of Exception?
>
> I was about to write same thing. :)
>
>  > Undid the fix, and wrapped the problem causing function call with
>  > try-catch-Throwable, it is caught now.
>
> However, it is not recommended to catch Throwable (nor Error).

Hm.. I wonder. If Error shouldn't be caught, shouldn't the program 
terminate?

-Steve


More information about the Digitalmars-d-learn mailing list