From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Last chance handler on a PC Date: Thu, 30 Jan 2020 10:15:25 +0100 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 30 Jan 2020 09:15:23 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b8a9a9aafa702af22c7c4fb4b2b62929"; logging-data="13857"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k3d66xsTnI5JYo86h3VgG" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cancel-Lock: sha1:Z8iIlqX8gyfvX5NIzLLFTl+s8Vw= In-Reply-To: Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:57985 Date: 2020-01-30T10:15:25+01:00 List-Id: Le 30/01/2020 à 09:55, ahlan@marriott.org a écrit : > 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? > Put this at the end of your main program: exception when others => Last_Chance; end; If you are using multi-tasking, you may want to consider termination handlers, see ARM C.7.3 -- 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