Note: we've seen a few EXE files with the 200 error, but which PatchCRT, up to ver 1.5, would not adjust. The information in this article applies to: All John Dailey Software products Symptoms: When attempting to run a program from within Windows or at the DOS prompt, the program crashes immediately Now recompile the CRT.ASM file, using the command line: TASM CRT.ASM /i..\inc /w0 The switch characters i and w must _not_ be capitals! tp7p5fix.zip 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 http://interskillmedia.com/runtime-error/fix-runtime.html
Borland (now Inprise) has no officially-supported fix for this but several unofficial fixes have appeared on various Pascal programming forums and newsgroups. If you'll have a gigahertz-cpu in some years, you'll get the runtime error again, so if you don't use the delay-routine at all, you might want to remove it completely: Programmers I have placed the file here. 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
Other programs should work fine with this. Some programs use OVERLAY operations (OVR files), with which patched programs may not work correctly.All output is in an "international language" in order to make the program somewhat simpler for foreigners.As Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. This error occurs due to incorrect initialisation of the DELAY counter.ctbppat is also a universal EXE scanner, monitor, and patcher.
The one I recommend is PatchCRT by Kennedy Software. All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. Additional feature: tries to make a program behave nice during delays if it runs in a multitasking environment. Here are the two apps I use for patching EXE files that are plagued with the infamous Runtime Error 200 (divide by zero).
http://www.brain.uni-freiburg.de/~klaus/pascal/runerr200/ ...but as is often the way with sites at universities, Klaus' directories are gone now. Symptom: A legacy MS-DOS program crashed while leaving the cryptic error message. Andreas Bauer
Otherwise you can run the application in DOSBox which can artificially slow down the speed of the emulated DOS session. Attachments TPPATCH.ZIP For Borland's Pascal/Turbo Pascal EXEs (9.4 KiB) Downloaded 3114 times Intel i7 5960XGigabye GA-X99-Gaming 58 GB DDR4 (2100)GeForce GTX 970 (Gigabyte) eL_PuSHeR Moderator Posts: 6412Joined: 2003-6-20 @ Register now while it's still free! The nice thing about UNP is it runs well under Windows.
Join Us! *Tek-Tips's functionality depends on members receiving e-mail. navigate here Unfortunately copyright laws prevent me from letting you download the patched CRT.TPU file from this server, so please change it yourself (it is pretty easy): Implement the changes, and assemble (TASM I have used it on a 233 mhz Pentium II and have heard of others using it on up to 400mhz machines. Technical Details of RTL patch: implements a 32 bit counter with somewhat different code than the other solutions, presumably to make it more relibable. Patchcrt
What happens is a code will actually measures the “running time” of what is called a busy wait loop. Note-3: Some nice comments, and variour useful advice, links, etc, at: http://www.pcmicro.com/elebbs/faq/rte200.html. The best tool I have found to uncompress .EXE files is UNP. Check This Out It is possible to make a batch run TPPATCH on all executables on the hard disk, because TPPATCH does a bunch of tests with every file, so not a single wrong
Join UsClose Skip to content Advanced search Board index ‹ Magrathea ‹ Deep Thought Change font size FAQ Register Login Fix "Error 200" (Divide by zero) - by Snover and Stiletto Note-1: Sometimes, EXE files are Compressed. Turbo Pascal had a timing bug that would cause its complied programs to crash when they were operating on machines running at 200Mhz or faster.
Download CRTFix 1.16 A CRT bug patching program. A MAKEFILE is included with the sources. My second choice would be CUP386, but this works best in a plain DOS environment without any extended memory manager (including himem.sys or emm386.sys) installed. Which is another way of saying - TEST your app carefully, if PatchCRT patches it !!.
On looking inside these EXEs, we noticed some code which is similar to published versions of CRT.ASM, but not EXACTLY the same. The first way is to use a patch in order to get the program to work, but this is risky. Remove the Delay procedure definitions, both in the interface and implementation section (lines 91 and 125). 6. this contact form bppatch.zip Solution by German computer magazine c't July 97 page 232.
This website should be used for informational purposes only.