comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Problems with the "mwindows" switch
Date: Wed, 03 Jun 2015 10:27:18 +0200
Date: 2015-06-03T10:27:18+02:00	[thread overview]
Message-ID: <mkmdmu$ofb$1@dont-email.me> (raw)
In-Reply-To: <ly6175xpge.fsf@pushface.org>

Le 03/06/2015 08:42, Simon Wright a écrit :
> NiGHTS <nights@unku.us> writes:
> 
>> Wouldn't it be the Ada way to scream violently before its death
>> instead of quietly accepting its fate? I have a feeling Windows is
>> inherently the problem here.
> 
> I think it's been fixed .. but for a long time GNAT tasks which suffered
> an unhandled exception would die silently, leaving the developer
> mystified.
> 
That's the required behaviour. After all, raising an exception is a good
way to immediately terminate a task, and there is no way to tell whether
it is intended.

What's new is the ability to have "last wishes" procedures, called upon
any task termination (whether normal or abnormal).

But it is certainly good practice to always have a catch-all exception
handler in every task (this can be enforced by AdaControl, of course :-) ).

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

      reply	other threads:[~2015-06-03  8:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-22 18:35 Problems with the "mwindows" switch NiGHTS
2015-05-22 19:24 ` sbelmont700
2015-05-22 19:51   ` NiGHTS
2015-05-23  5:33     ` Dmitry A. Kazakov
2015-05-23  7:20       ` NiGHTS
2015-05-23  8:06         ` Dmitry A. Kazakov
2015-05-28 22:19   ` Randy Brukardt
2015-05-28 23:49     ` sbelmont700
2015-05-29 21:24       ` Randy Brukardt
2015-05-29 21:36         ` Jeffrey R. Carter
2015-05-29 22:10           ` Simon Wright
2015-05-30  0:08           ` Dennis Lee Bieber
2015-06-01 21:24           ` Randy Brukardt
2015-06-01 23:12             ` sbelmont700
2015-05-29 11:00     ` Björn Lundin
2015-05-23 20:23 ` gautier_niouzes
2015-06-02 22:33   ` NiGHTS
2015-06-03  6:42     ` Simon Wright
2015-06-03  8:27       ` J-P. Rosen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox