Catching thread creation error

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 4 13:28:13 PDT 2016


In my server program, when a request comes, I create a new thread 
for that.

I put memory limit to program with setrlimit. So, when the limit 
is reached, new thread cannot be created.

I want to tell client back that there is system problem. But 
catching "Throwable" does not suffice for this it seems like. 
Program still breaks and tells that "Error creating thread". Is 
there any normal way to catch this event?


More information about the Digitalmars-d-learn mailing list