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,8da181ade72859cf X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 MSIE X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: timeouts References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 27 Aug 2004 17:54:00 GMT NNTP-Posting-Host: 63.184.105.78 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1093629240 63.184.105.78 (Fri, 27 Aug 2004 10:54:00 PDT) NNTP-Posting-Date: Fri, 27 Aug 2004 10:54:00 PDT Xref: g2news1.google.com comp.lang.ada:3091 Date: 2004-08-27T17:54:00+00:00 List-Id: Brian May wrote: > I found PragmARC.Date_Handler the Image function, and am now using it. > > For some weird reason, when I compile my program with the latest > mingw32 GNAT compiler, it constantly prints "N = 1" on a separate line > on its own whenever I call the Image function. If I remove the call to > the Image function, the N = 1 goes away. Sometimes I get two, most of > the time I only get one. Any ideas why? This didn't happen with Gnat > 3.15p. Not a show stopper, it just irks me that I can't explain this > difference in behaviour. Will continue investigating. The only things I can think of are: 1. There's some debugging outputs in the mingw32 version of the compiler 2. You've modified the PragmARCs to include this output Since I presume you'd remember if you'd done 2., that leaves 1. as the only thing I can think of. > Also with GNAT 3.15 this would work, but it come up with a compiler > error on mingw32: > > with Types; > use Types; > use type Byte; > > I had to change it to > > with Types; > use Types; > use type Types.Byte; > > Strange. Not sure which behaviour is correct. This is an error in GNAT 3.15p. The visibility of "use" should not take effect in the context clauses, but GNAT 3.15p applies it there. The 2nd version is correct. -- Jeff Carter "Have you gone berserk? Can't you see that that man is a ni?" Blazing Saddles 38