assert or execption case program hang in multi thread
Jarrett Billingsley
jarrett.billingsley at gmail.com
Sat Feb 21 08:51:09 PST 2009
On Sat, Feb 21, 2009 at 9:04 AM, Christopher Wright <dhasenan at gmail.com> wrote:
> liyu wrote:
>> maybe i should title it assert or execption can't terminate the prog in
>> multithread:-)
>> yes, the main thread is still running, but i want the program terminated
>> when a assert failure or exception happened whatever. otherwise i have
>> to notify the main thread, i think that's a littel inconvenient.
>
> You could make a feature request for Tango. That's where the issue lies.
It might not even be necessary. tango.core.Exception has a way to
replace the default assertion handler so that you can i.e. stop all
threads when an assertion fails.
More information about the Digitalmars-d
mailing list