Hi! 30-Ноя-2004 19:04 [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote to [EMAIL PROTECTED]:
kn> I've been bitten by an apparent bug in Turbo Pascal running on kn> newer computers. Here is the only FreeDOS reference I can kn> This apparently also fails on MS-DOS 6.22 but DOES NOT fail on the kn> version of MS-DOS that ships with Windows 98SE (4.10.2222). If you mean "runned under GUI", then this may be explained as slowdown of DOS boxes (Windows kernel eats some time for itself). kn> Does anyone know what this bug is This bug is in CRT unit: Borlands programmers implement delay() in such way, that it loops given count of iteration for each request millisecond. For this, when program starts, CRT units measures how much of iterations performed during millisecond. Trouble is that on faster computers there is too much of iterations and in next calculations result is division by zero (which in TP called "Runtime error 200"). kn> and whether it could be fixed in FreeDOS? There is some ways, how to fix bug in TP library itself and how to fix already compiled programs. And this not depends from OS. For example, take a look at: http://fjf.gnu.de/newdelay.pas http://www.brain.uni-freiburg.de/~klaus/pascal/runerr200/newdelay.pas http://www.brain.uni-freiburg.de/~klaus/pascal/runerr200/bp7patch.zip ftp://garbo.uwasa.fi/pc/turbopas/rdelay10.zip ______________O\_/_________________________________\_/O______________ TP6BUGS7.LST - Version 7 of TP 6.0 bug list Duncan Murdoch [EMAIL PROTECTED] (Internet address) DJ Murdoch at 1:249/99.5. (Fidonet) _____________________________________________________________________ O/~\ /~\O ______________O\_/_________________________________\_/O______________ BP7BUGS2.LST - Version 2 of BP 7.0 bug list Duncan Murdoch [EMAIL PROTECTED] (Internet address) DJ Murdoch at 1:249/99.5. (Fidonet) _____________________________________________________________________ O/~\ /~\O Also, for fixing programs, compiled by TP/BP, I very recommend TPPATCH, written by Andreas Bauer <andi.tio hit.handshake.de> (unfortunately, don't know its URL). ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Freedos-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-user