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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!q2g2000vbr.googlegroups.com!not-for-mail From: Rick Newsgroups: comp.lang.ada Subject: Exception handler does not catch an exception Date: Sun, 7 Jun 2009 20:19:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 123.3.189.248 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1244431189 4044 127.0.0.1 (8 Jun 2009 03:19:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 8 Jun 2009 03:19:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q2g2000vbr.googlegroups.com; posting-host=123.3.189.248; posting-account=q18aiAoAAADbiIPIlD5R8oYVGhuoBvVA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6360 Date: 2009-06-07T20:19:49-07:00 List-Id: I am using an exception handler in the mainline of my program: exception when Error : PROGRAM_ERROR => Put_Line (Exception_Message (Error)); Get_Line (Line, Last); when Another_Error : others => Put_Line (Exception_Message (Another_Error)); Get_Line (Line, Last); end Phone_Keyboard; but I still get an error message: D:\ProgrammingFiles\Widgets\PhoneKeyboard\Phone_Keyboard Execution terminated by unhandled exception Exception name: PROGRAM_ERROR Message: EXCEPTION_ACCESS_VIOLATION Call stack traceback locations: 0x4483c5 0x7c9032a6 0x7c903278 0x7c90e488 0x407289 0x4017f2 0x401235 0x401286 0x7c817075 [2009-06-08 10:48:19] process exited with status1 (elapsed time: 03.28s) Why is my exception handler not handling the exception?