comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve Doiel" <nospam_steved94@attbi.com>
Subject: Re: Whats wrong with my Callbacks?
Date: Sat, 18 May 2002 01:27:02 GMT
Date: 2002-05-18T01:27:02+00:00	[thread overview]
Message-ID: <C5iF8.27592$AU.39594@sccrnsc02> (raw)
In-Reply-To: ac2jku$t1s$1@newstoo.ericsson.se

Try this for a.adb

with Ada.Text_io;
package body A is

   task body sim is
   begin
      loop
         Global_Ptr.all;
      end loop;
   exception
     when others =>
       Ada.Text_Io.Put_Line( "Exception!!!" );
   end sim;

begin
   null;
end a;

The default behavior when an unhandled exception occurs in a task is for the
task to terminate silently.

As to why it isn't working... to begin with the task may try dereferencing
the pointer before it has been assigned.

SteveD

"Darren" <sebastian.madunic@avionics.saab.se> wrote in message
news:ac2jku$t1s$1@newstoo.ericsson.se...
> Could anybody tell me why this isnt working?
>
> /D
>
>
>





      parent reply	other threads:[~2002-05-18  1:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-17  9:52 Whats wrong with my Callbacks? Darren
2002-05-17 10:57 ` David C. Hoos, Sr.
2002-05-17 11:26 ` Preben Randhol
2002-05-18  1:27 ` Steve Doiel [this message]
replies disabled

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