From: Zaphod.Arisztid.Beeblebrox@gmail.com   
      
   "Ivan Levashew" wrote in message   
   news:gtoj72$ndc$1@octagram.motzarella.org...   
   > Hello!   
   >   
   > I can't get floating point operations working. Try running this in   
   > your version of Turbo (Borland) Pascal:   
   >   
      
      
      
   > The problem might appear after you have run this program from IDE   
   > several times. It doesn't appear when program is being launched from   
   > command line. It doesn't appear on the first launch.   
   >   
   > During the first several runs everything is OK: 2.0 / 5.0 = 0.400   
   >   
   > But then floating point goes wild. 2.0 / 5.0 = 5.00, then NaNs, then   
   > another stupid values. I have to keep {$N-,$E+} mode because of   
   > this. I tried various versions of BP, the problem seems to be   
   > everywhere.   
   >   
   > But I can't remember ever having such a problem on a real DOS   
   > environment. So I guess this is DOSBox specific problem.   
   >   
   > Do you know a cure against it? {$N-,E+} doesn't count. Neither FPC.   
   >   
      
   I cannot duplicate it running the TP 7 IDE (w/RT 200 patch) in CMD.EXE   
   under XP SP3, but it does happen in DOSBox 0.72 under XP SP3 exaclty   
   as you describe it. Other symptoms include that it visibly slows down   
   on the run before the problem occurrs, and if you run keep running it,   
   it will eventually start running properly again and seems to run   
   properly from then on (well, for at least a couple dozen attempts any   
   way).   
      
   Seems like DOSBox is at fault here. Is there any particular reason   
   you need to use DOSBox? Also, have you reported this to the DOSBox   
   developers?   
      
   --   
   Zaphod   
      
   Arthur: All my life I've had this strange feeling that there's   
   something big and sinister going on in the world.   
   Slartibartfast: No, that's perfectly normal paranoia. Everyone in the   
   universe gets that.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|