Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
'Div by Zero' error msg... Posted by zapper on 18 Dec 2003 at 8:00 AM
I have two partitions on my machine - one with FAT32 containing Win98SE OS and the other with FAT16 containing MS-DOS 6.22 OS. I installed Turbo Pascal v7.0 onto the FAT16 partition and wrote a small 'Hello, World!' program just to test the installation. When I ran it, I received an 'Error 200 - Division by Zero' message. Since there is no math involved in my program, I'm wondering if there is some setting or adjustment that I need to perform. I seem to remember that I ran into this problem several years ago with an earlier version of Turbo Pascal, but I forget how I resolved the problem. Any insights would be appreciated.

zapper
Report
Re: 'Div by Zero' error msg... Posted by zibadian on 18 Dec 2003 at 10:47 AM
: I have two partitions on my machine - one with FAT32 containing Win98SE OS and the other with FAT16 containing MS-DOS 6.22 OS. I installed Turbo Pascal v7.0 onto the FAT16 partition and wrote a small 'Hello, World!' program just to test the installation. When I ran it, I received an 'Error 200 - Division by Zero' message. Since there is no math involved in my program, I'm wondering if there is some setting or adjustment that I need to perform. I seem to remember that I ran into this problem several years ago with an earlier version of Turbo Pascal, but I forget how I resolved the problem. Any insights would be appreciated.
:
: zapper
:
Then you probably have to too fast a computer. Try to download a patch for the crt unit.
Report
Re: 'Div by Zero' error msg... Posted by darkraven32 on 30 Apr 2009 at 10:08 PM
you must be tripping the TP/BP crt unit on above 200mhz cpu.it is tripped by bad math on delay() routine inside the unit.I would suggest just replacing the unit.It may be inside the system TPU 'bundle',remove it, then add another back.


I have a replacement unit (HERE) that works well.It should compile, I recently made a few changes to it,though, so no guarantees.It compiles 80% or more of the way,though.I've been working on my Run Time Libraries, so that's why it might not compile.It did compile before.Its not glorious,but it works.

I need this for my kernel.Just rename the unit.It works.

NOTE:

use fpnanosleep? instead of delay() is WAY more accurate.The procedure is inside of FPC compiler.what I give you is a generic timer that doesn't need anything else or assembler to work.
Attachment: video.pas (17631 Bytes | downloaded 77 times)



 

Recent Jobs