Solved

unit crt not working on pentium2

Posted on 1998-07-30
5
340 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi TDBX too many connection problem 2 1,152
Interbase BDE 4 454
Creating a blank copy of a TClientDataSet 1 1,146
Conversion ? 15 88
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

12 Experts available now in Live!

Get 1:1 Help Now