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,ccebbc4b591481d2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-13 07:04:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada.Task_Identification.Abort_Task (Environment_Task) ; Date: 13 Jul 2002 14:45:58 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk X-NNTP-Posting-Host: pogner.demon.co.uk:62.49.19.209 X-Trace: news.demon.co.uk 1026568882 nnrp-01:24556 NO-IDENT pogner.demon.co.uk:62.49.19.209 X-Complaints-To: abuse@demon.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:27046 Date: 2002-07-13T14:45:58+01:00 List-Id: "Marin David Condic" writes: > I'm trying to make a call to Ada.Task_Identification.Abort_Task > (Environment_Task) ; using the Gnat 3.14p compiler on WindowsNT. It > is failing to terminate the program. From looking at the > documentation for: pragma Polling and the -gnatP switch, its looking > like I've got to do something special to get this to work. A package > body: 4wexcpol.adb seems to be mentioned, but it is not clear how to > get this included in the build. Can anyone offer some advice on how > to get the Abort_Task to kill the whole program on demand? Thanks. This technique worked for us out of the box with no special switches. OK, it was 3.14a1 to start with and now 3.15a1 .. but as I say, no trouble. The 4wexcpol.adb (and other files with numeric prefixes) contain variants, using a naming scheme I've never tried to understand, which are selected and renamed by the GNAT build process. So I would expect you to have the right one for your platform already.