assert or execption case program hang in multi thread

liyu yunwind at msn.com
Sat Feb 21 16:54:05 PST 2009


yup, that's what i need, thanks all for the reply!


"Jarrett Billingsley" <jarrett.billingsley at gmail.com> wrote in message 
news:mailman.813.1235235089.22690.digitalmars-d at puremagic.com...
> 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