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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,462a4f123e2d4476 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-23 15:37:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!wn1feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc54.POSTED!not-for-mail From: "Steve Doiel" Newsgroups: comp.lang.ada References: <5ee5b646.0203230352.7095fff0@posting.google.com> Subject: Re: not handled exceptions X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <2l8n8.96800$Yv2.30930@rwcrnsc54> NNTP-Posting-Host: 12.225.227.101 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc54 1016926654 12.225.227.101 (Sat, 23 Mar 2002 23:37:34 GMT) NNTP-Posting-Date: Sat, 23 Mar 2002 23:37:34 GMT Organization: AT&T Broadband Date: Sat, 23 Mar 2002 23:37:34 GMT Xref: archiver1.google.com comp.lang.ada:21595 Date: 2002-03-23T23:37:34+00:00 List-Id: 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" 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 > | BOFH excuse #288: Hard drive sleeping. Let it wake up on it's own...