Solved

unit crt not working on pentium2

Posted on 1998-07-30
5
338 Views
Last Modified: 2010-04-16
on my new pentium2 300 Mhz computer (Vobis) I get the error- message 200 (division) by zero when using the unit crt. Even without calling any routine of crt. Are there updates available of Turbo Pascal Units for Pentium2 and where ?
Or is there another solution to run my Turbo Pascal Programs on a Pentium2 Computer.
0
Comment
Question by:akettl
5 Comments
 

Author Comment

by:akettl
ID: 1217206
Edited text of question
0
 
LVL 1

Accepted Solution

by:
ow earned 80 total points
ID: 1217207
Borland uses a 16 bit division when counting a loop within the initialization of the unit crt (for the delay routine).
On faster computers this produces an overflow (RE 200), as soon as crt is inserted anywhere with "uses".

If you own the RTL with source code CRT.ASM, you may correct  the routine and recompile the tpl files with Make.

A patch program for exe files can be found in http://www.heise.de/ct/ftp/pcconfig.shtml.

0
 
LVL 2

Expert Comment

by:omsec
ID: 1217208
to ow : is this only because the Delay-Proc ?
0
 
LVL 1

Expert Comment

by:ow
ID: 1217209
The overflow error is primarly not produced by the delay procedure but by the initialization routine of crt.
This initialization routine calls various subroutines to get information about screen resolution and other things. One of these subroutines counts the delay loop time, where the overflow error is produced.

The initialization routine of a unit is called as soon as the unit is inserted with "uses" anywhere in a program or another used unit.

0
 

Expert Comment

by:gstamell
ID: 1217210
the patch available from http://www.chesworth.com/pv/vault/v_bug_buster.htm works quite well, i have just tried it out on a pentium II Celeron 330A
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now