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-Thread: 103376,a7ce27b599c77060 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!proxad.net!newsfeed.icl.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Elaboration problem with a task Date: Thu, 05 Jan 2006 20:42:08 +0000 Organization: Pushface Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1136493705 15034 62.49.19.209 (5 Jan 2006 20:41:45 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 5 Jan 2006 20:41:45 +0000 (UTC) Cancel-Lock: sha1:nM58CxGYpLRsspKErlVHZwx3Cic= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:2453 Date: 2006-01-05T20:42:08+00:00 List-Id: This compiles & runs OK (GNAT/GPL on MacOS): with Parent_P.Child_C1; pragma Elaborate (Parent_P.Child_C1); package body Parent_P is The normal rule-of-thumb with GNAT is to avoid creating tasks during elaboration; try to use task types and create the actual tasks after elaboration has completed. I know this tends to add complication to the design!