Board index » delphi » Unit Crt causes error 200

Unit Crt causes error 200

After changing from Windows 95 to Windows 98 the following
problems showed up:
Turbo Pascal programs under MSDOS:
The run time system of these programs causes an abort immediately
after start-up reporting an error 200 ("division by zero")
It seems that those programs which use the unit "Crt" are concerned.
The error report refers to some varying segment address and an
instruction pointer address of 0091. At this place there is the
instruction DIV CX. (CX contains the value of 37H, which was set
by the preceeding instruction MOV CX,37)
When this instruction at address 0091 is executed in single step
either with Turbo De{*word*81} or with the standard Microsoft de{*word*81},
then the above mentioned run time error is triggered.

Dozens of these programs are running many years flawlessly under
Windows 95 and DOS. They work also on other machines using Windows 98.
What settings have to be changed to avoid this erroneous abort?

Thank you for your help!

Urs Hadorn

 

Re:Unit Crt causes error 200


In article <37B027B1.3800B...@datacomm.ch>,
Urs Hadorn  <uhad...@datacomm.ch> wrote:

Quote

>Dozens of these programs are running many years flawlessly under
>Windows 95 and DOS. They work also on other machines using Windows 98.
>What settings have to be changed to avoid this erroneous abort?

This is  a VFAQ. It is not about the OS but the speed of the computer.

Osmo

Re:Unit Crt causes error 200


Urs Hadorn <mailto:uhad...@datacomm.ch> said:

Quote
>Turbo Pascal programs under MSDOS:
>The run time system of these programs causes an abort immediately
>after start-up reporting an error 200 ("division by zero")

*Sigh* Please read before writing, it saves us all time. Info:

Mini-FAQ posted weekly lists this. Copies in the newsgroup and at
                        http://homepages.force9.net/pascal/faq/clpb-faq.txt
                        http://www.merlyn.demon.co.uk/clpb-faq.txt
                        ftp://garbo.uwasa.fi/pc/doc-net/faqclpb.zip

Also Timo Salmi's FAQ - monthly pointer posted in clpb
                        ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip
                        See #124

--
Pedt

Re:Unit Crt causes error 200


JRS:  In article <37B027B1.3800B...@datacomm.ch> of Tue, 10 Aug 1999
15:22:57 in news:comp.lang.pascal.borland, Urs Hadorn

Quote
<uhad...@datacomm.ch> wrote:
>After changing from Windows 95 to Windows 98 the following
>problems showed up:
>Turbo Pascal programs under MSDOS:
>The run time system of these programs causes an abort immediately
>after start-up reporting an error 200 ("division by zero")
>It seems that those programs which use the unit "Crt" are concerned.
>The error report refers to some varying segment address and an
>instruction pointer address of 0091. At this place there is the
>instruction DIV CX. (CX contains the value of 37H, which was set
>by the preceeding instruction MOV CX,37)
>When this instruction at address 0091 is executed in single step
>either with Turbo De{*word*81} or with the standard Microsoft de{*word*81},
>then the above mentioned run time error is triggered.

>Dozens of these programs are running many years flawlessly under
>Windows 95 and DOS. They work also on other machines using Windows 98.
>What settings have to be changed to avoid this erroneous abort?

>Thank you for your help!

>Urs Hadorn

Read before Write!  You get the answers more quickly that way!!
Pascal Start-Up Error 200 on fast PCs when using the Crt unit is a VFAQ!

Read the many earlier postings in the comp.lang.pascal.borland (Frank H,
Roger D, ...) and borland.public.turbopascal newsgroups (you can use
DejaNews), including the comp.lang.pascal.borland mini-FAQ, and Prof.
Salmi's FAQ  ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip #124, and/or Ing.
Franz Glaser's http://www.geocities.com/SiliconValley/2926/tp.html and my
http://www.merlyn.demon.co.uk/  clpb-faq.txt  pas-time.htm  pas-linx.htm
Another fix is to avoid all use of the Crt unit, or, if accurate Delay is
not needed, to compile with TP5 or TP6.

--
John Stockton, Surrey, UK.    j...@merlyn.demon.co.uk     Turnpike v4.00   MIME.

Other Threads