Solved

unit crt not working on pentium2

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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