comp.lang.ada
 help / color / mirror / Atom feed
* not handled exceptions
@ 2002-03-22 17:40 Michal Nowikowski
  2002-03-23  0:42 ` Greg Bek
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Michal Nowikowski @ 2002-03-22 17:40 UTC (permalink / raw)


Hello

I've got problem with exceptions. It is my code:

declare
  D : Integer_Array_Access;
begin
  -- D is not allocated, so such call should raise 
  -- Constraint_Error exception:
  D(3) := 5;
end;

but program does not throw exception instead it hangs.
When I do:

begin
  D(3) := 5;
exception
  Constraint_Error =>
     put_line("exception raised");
end;

the exception is raised and message is seen - program
continue execution.

I use Gnat 3.14 on Linux box. Have You any idea how to
solve this problem?

Best regards
Godfryd

-- 
|  Michal Nowikowski <godfryd@zamek.gda.pl>
|  BOFH excuse #360: Your parity check is overdrawn and you're out
|  of cache.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-03-24  6:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-22 17:40 not handled exceptions Michal Nowikowski
2002-03-23  0:42 ` Greg Bek
2002-03-23  7:09 ` Wilhelm Spickermann
2002-03-23  9:36   ` Ingo Marks
2002-03-23 13:40   ` Michal Nowikowski
2002-03-23 11:52 ` Robert Dewar
2002-03-23 13:39   ` Michal Nowikowski
2002-03-23 15:13     ` Steve Doiel
2002-03-23 17:32       ` tmoran
2002-03-23 22:04       ` Michal Nowikowski
2002-03-23 23:37         ` Steve Doiel
2002-03-24  6:47           ` Michal Nowikowski

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