Fixes for "Runtime Error 200" bug of Borland Pascal 7 on fast PCs

Note: You are reading the download page. For more explanations and a nice index please go to the main page.

Patch program for existing executable files

Limits the delay factor to the maximum possible value.

Note: this program speaks only German, but English docs are included.

Note: This program is recommended by Borland.

Use: if your program is   program.exe , enter the command   tppatch program.exe

Warning: This patch will cause delay to run too fast on computers that are significantly faster than Pentium II with about 233 MHz. Some programs require correct timing, for those this patch may do more harm than help! Other programs should work fine with this.

Technical details: NEW!

patch program for Run Time Library file of Turbo Pascal 7.01

Program patches the file TURBO.TPL, the run time library file of Turbo Pascal version 7.01.

Use: replace your file TURBO.TPL with the one generated by this program, then recompile your pascal sources.

Technical Details:


unit with delay replacement and error trap

(maybe newer version available here)

This unit comes as pascal source. It contains two things:

Additional feature: tries to make a program behave nice during delays if it runs in a multitasking environment. This will of course delay to be a too long and a bit different each time. If you don't like it, disable it in the source.

Use: In your program sources include this unit first, crt second, then all other units and then recompile your programs.

Solution by German computer magazine c't July 97 page 232.

This file contains several different solutions: a patch program for executable files (discussed in the magazine), modified source for the Crt unit and compiled new versions of the run time library files turbo.tpl, tpp.tpl and tpw.tpl.

The patch program for executables has the same problem as all these patches: if the patched program uses the delay procedure, this will run at incorrect speed, thus if the program requires precise timing and uses delay to do that, it will probably not work properly any more. Furthermore on even faster computers than today this patch will fail and the run time error will re-appear even with the patch applied.

Technical Details of RTL patch:


patch program for Run Time Library

Program that can patch your run time library files TPP.TPL and TURBO.TPL of Turbo Pascal versions 7.0 or 7.01.

In the patched versions the delay procedure will use a 32 bit counter similar as in newdelay but without the nice idle behaviour.

Note: This is a new program version that will work also if you have only TURBO.TPL, no TPP.TPL (i.e. Turbo Pascal instead of Borland Pascal).

Note: This program is recommended by Borland.

Use: patch your TPL files, then recompile your pascal sources.

Warning: not only changes CRT.TPU, but also all other files in the Run Time Library. There are especially very many changes to SYSTEM.TPU. I find this a bit suspicious and are very uncomfortable with using the new file as long as I don't know precisely what's going on here.

TSR program to catch the runtime error while an affected program starts

Note: I do not know anything about what exactly this program does and did not yet test it myself.

Warning: this program probably causes the delay to run too fast, so likely the same warning applies as for TpPatch

Use: Install the TSR before any program is run that was compiled with Borland Pascal.

new TPL files

not available for download here because of potential copyright problems

File contains exactly the same files CRT.ASM, CRT.PAS and CRT.TPU (included in TURBO.TPL) as BPPATCH.ZIP.

Warning: all the other TPU files contained in TURBO.TPL are different from the original files too, expecially SYSTEM.TPU contains a lot of changes. They are neither the version of Turbo Pascal 7.0, nor the ones of versions 7.01. I find this a bit suspicious and are very uncomfortable with using the new file as long as I don't know precisely what's going on here.

Last change: 22-Aug-1998
Collection and Descriptoons © 1998 by Klaus Hartnegg
All information and programs mentioned herein are provided without warranty. Use all on your own risk.
Best viewed withany browser. Created using The Semware Editor. Ceterum censeo Microsoft esse delendam.