From: Egil H H <ehh.public@gmail.com>
Subject: Re: Last chance handler on a PC
Date: Thu, 30 Jan 2020 01:17:15 -0800 (PST)
Date: 2020-01-30T01:17:15-08:00 [thread overview]
Message-ID: <c2b3d19c-b238-4411-84a1-3bac76531a6e@googlegroups.com> (raw)
In-Reply-To: <c88861f7-b704-4c8e-a065-e22d6888fc17@googlegroups.com>
On Thursday, January 30, 2020 at 9:55:42 AM UTC+1, ah...@marriott.org wrote:
> Hi,
>
> Does anyone know if it is possible to install a last chance handler for a PC program.
> Ie Write a procedure that gets called when a program issues an unhandled exception
> If it is possible how do you do it?
You can use the Termination_Handler in Annex C.7.3 (Added in Ada 2005), provided your compiler/runtime supports it.
http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-C-7-3.html
Example usage is discussed in the Ada 2005 Rationale:
https://www.adaic.org/resources/add_content/standards/05rat/html/Rat-5-2.html#I1150
--
~egilhh
next prev parent reply other threads:[~2020-01-30 9:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-30 8:55 Last chance handler on a PC ahlan
2020-01-30 9:15 ` J-P. Rosen
2020-01-30 9:17 ` Egil H H [this message]
2020-01-30 19:27 ` ahlan
2020-01-31 5:53 ` J-P. Rosen
2020-01-31 7:00 ` Jeffrey R. Carter
2020-01-31 8:51 ` J-P. Rosen
2020-01-30 9:25 ` Dmitry A. Kazakov
2020-01-30 19:10 ` Lucretia
2020-01-30 19:35 ` ahlan
2020-01-30 20:02 ` Jeffrey R. Carter
2020-01-30 20:26 ` Niklas Holsti
2020-01-30 20:51 ` Jeffrey R. Carter
2020-01-30 21:32 ` Niklas Holsti
2020-01-31 11:12 ` Simon Wright
2020-01-31 11:19 ` Simon Wright
2020-01-31 12:30 ` Niklas Holsti
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox