comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: Exception handler does not catch an exception
Date: Mon, 08 Jun 2009 11:40:44 GMT
Date: 2009-06-08T11:40:44+00:00	[thread overview]
Message-ID: <0N6Xl.57292$d36.8614@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: c0998767-78da-44da-ae0e-bd6daa6d30a1@o36g2000vbi.googlegroups.com

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 <c0998767-78da-44da-ae0e-bd6daa6d30a1@o36g2000vbi.googlegroups.com>, rickduley <rickduley@gmail.com> 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.




  reply	other threads:[~2009-06-08 11:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08  3:19 Exception handler does not catch an exception Rick
2009-06-08  5:16 ` anon
2009-06-08  7:21   ` rickduley
2009-06-08 11:40     ` anon [this message]
2009-06-08  7:37 ` Ludovic Brenta
2009-06-09 10:50   ` Stephen Leake
2009-06-09  2:01 ` rickduley
2009-06-09  7:26   ` Dmitry A. Kazakov
2009-06-10 10:06   ` Stephen Leake
2009-06-14 14:12 ` Alex R. Mosteo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox