Solved

unit crt not working on pentium2

Posted on 1998-07-30
5
348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…
Check out this step-by-step guide for asking an anonymous question on Experts Exchange.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 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