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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d5d3f798891fda5a X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: GNAT-DOS delay bug Date: 1999/08/11 Message-ID: <7osb10$gvv$1@nnrp1.deja.com>#1/1 X-Deja-AN: 511494280 References: <37B1346B.4084A7D3@it.swin.edu.au> X-Http-Proxy: 1.0 x38.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Aug 11 17:14:20 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-08-11T00:00:00+00:00 List-Id: In article <37B1346B.4084A7D3@it.swin.edu.au>, RAllen@swin.edu.au wrote: > Specifically I am using EZ2LOAD, that is, GNAT3.10 DOS with DJGPP 2.01 > (Why not the 3.11 Win32 GNAT? Because I also want to run the code on a > 486 to control a model railroad -- to teach real-time programming > including interrupt handling. Am I wrong in this approach?) The bug > shows up on Pentium Pros and IIs all running NT4.0sp3. > > The problem is that delay statements (except delay 0.0) produce illegal > memory refs to 0xFFFFFFFF immediately crashing the run whether running > the EXE directly or via the adacaps Run. Yes, this is most certainly a bug. It is unlikely that it can be fixed in the ancient version of the compiler you are using. I don't know if the DOS version ever got upgraded to 3.11, you could contact Mike Feldman for details -- or perhaps he will see this and answer. I would definitely switch to the NT/Win95 version, and then figure out how to send the necessary control signals to your model railroad stuff using the Win32 API. Of course if you have specialized boards and so on that you are plugging in, then you would have to write drivers for them, which is not trivial (though certainly possible). Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.