Board index » delphi » Division by zero

Division by zero

I have been receiving a runtime error 200 Division by zero, even though
I don't have a / div or mod function anywhere in my program.  What else
could be contributing to this error?
Thanks
danima...@hotmail.com

Sent via Deja.com http://www.deja.com/
Before you buy.

 

Re:Division by zero


Quote
humplik...@my-deja.com wrote:

> I have been receiving a runtime error 200 Division by zero, even though
> I don't have a / div or mod function anywhere in my program.  What else
> could be contributing to this error?
> Thanks
> danima...@hotmail.com

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Once again :)

This is a bug which occurs on machines which are "too fast" (>200 Mhz).
It happens due to the initialization for delay in crt.pas. If you remove
the crt unit from your uses statment you will see, that the bug
disappears, but then you cannot use anymore any functions from the crt
unit. There are several patches available (but not from Borland) which
fix it. Take a look at the mini-faq of this group
(news:DWWbzyC9iW+4EwJJ@pedt.demon.co.uk).

Alex
--
Author of the free Chatsystem PINO! || Website: http://www.alcomp.net
Available at http://pino.cjb.net    || Chat   : pinochat.dhs.org:8080

Re:Division by zero


humplik...@my-deja.com said

Quote

>I have been receiving a runtime error 200 Division by zero, even though
>I don't have a / div or mod function anywhere in my program.  What else
>could be contributing to this error?

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

Mini-FAQ posted weekly lists this. Copies in the newsgroup and at
                        http://www.pedt.serve.net.uk/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

Other Threads