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!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!wn11feed!worldnet.att.net!bgtnsc04-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: <0N6Xl.57292$d36.8614@bgtnsc04-news.ops.worldnet.att.net> Date: Mon, 08 Jun 2009 11:40:44 GMT NNTP-Posting-Host: 12.64.186.3 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1244461244 12.64.186.3 (Mon, 08 Jun 2009 11:40:44 GMT) NNTP-Posting-Date: Mon, 08 Jun 2009 11:40:44 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:6367 Date: 2009-06-08T11:40:44+00:00 List-Id: If you try to read past the end_of_line or end_of_file then "Get_Line" will cause the exception. The "Skip_line" may correct the end_of_line condition, unless the end_of_line is follow by an end_of_file condition. The end_of_line and end_of_file can be inserted or embeded in the line you are trying to read. You can trace the error with GDB and the stack dump. Or to gives us a more clearer picture you can post the complete routine and a sample of the line to be read by the routine. In , rickduley writes: >On Jun 8, 1:16=A0pm, a...@anon.org (anon) wrote: >> From what you have posted the exception is first trapped, but causes anot= >her >> exception with the statement: >> >> =A0 =A0 =A0Get_Line (Line, Last); >> >> You might first try commenting this line or changing the line to: >> >> =A0 =A0 =A0Skip_Line ; >> > > >The Get_Line is simply to hold the message in the command window while >I read the results. >It doesn't work, as you can see from the line > >[2009-06-08 10:48:19] process exited with status1 (elapsed time: >03.28s) > >in the error message. The process has exited without waiting for the >Get_Line. This means it did not get into the exception handler. If >it had it would have printed the message, not the traceback locations.