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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e315b3232f1093b0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Exception handler does not catch an exception Reply-To: anon@anon.org (anon) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: <291Xl.333963$4m1.31474@bgtnsc05-news.ops.worldnet.att.net> Date: Mon, 08 Jun 2009 05:16:46 GMT NNTP-Posting-Host: 12.65.114.186 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1244438206 12.65.114.186 (Mon, 08 Jun 2009 05:16:46 GMT) NNTP-Posting-Date: Mon, 08 Jun 2009 05:16:46 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:6361 Date: 2009-06-08T05:16:46+00:00 List-Id: >From what you have posted the exception is first trapped, but causes another exception with the statement: Get_Line (Line, Last); You might first try commenting this line or changing the line to: Skip_Line ; In , Rick writes: >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?