From: "Steve Doiel" <nospam_steved94@attbi.com>
Subject: Re: not handled exceptions
Date: Sat, 23 Mar 2002 23:37:34 GMT
Date: 2002-03-23T23:37:34+00:00 [thread overview]
Message-ID: <2l8n8.96800$Yv2.30930@rwcrnsc54> (raw)
In-Reply-To: pan.2002.03.23.23.04.35.386529.957@zamek.gda.pl
Look into using the "terminate" option with a select statement. Something
along the lines of:
task_loop:
loop
select
Do_Something;
or
terminate;
exit task_loop;
end select;
end loop task_loop;
When you give the select a terminate option it will be taken when the
controlling task terminates.
SteveD
"Michal Nowikowski" <godfryd@zamek.gda.pl> wrote in message
news:pan.2002.03.23.23.04.35.386529.957@zamek.gda.pl...
> On Sat, 23 Mar 2002 16:13:56 +0100, Steve Doiel wrote:
>
> > For example, if you program includes tasks, the main program will not
> > terminate until all dependent tasks terminate.
>
> Yes, it is. The problem was that main program (where exception occured)
> was waiting for a task.
>
> Is it possible to stop task while it is doing sth? Maybe i could use
> this construction:
>
> select
> ...
> then abort
> ...
> end select;
>
> but how to know that exception has been raised?
>
> Godfryd
>
> --
> | Michal Nowikowski <godfryd@zamek.gda.pl>
> | BOFH excuse #288: Hard drive sleeping. Let it wake up on it's own...
next prev parent reply other threads:[~2002-03-23 23:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-03-24 6:47 ` Michal Nowikowski
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox