Need help with.. With... Pascal! :,( Created 19 years ago2005-07-24 14:47:15 UTC by Daubster Daubster

Created 19 years ago2005-07-24 14:47:15 UTC by Daubster Daubster

Posted 19 years ago2005-07-24 14:47:15 UTC Post #123223
Ok since i had nothin to do when i was gone, and the only cpu available was my father's notebook, which is CRAP, I made a game with Pascal... Now It worked fine on the notebook, but once I copy it into my cpu, it always gives me an error, when I try to run it:
Runtime error 200. Division by zero
Now the way I understand it, the compiler thinks, that I try to divide sumthin by 0.. That's bullshit! Theres not 1 single "mod", "div" or "/" in my program! In other words I don't try to divide anythin by anythin! :aghast:
So can anyone in the community, who understands Pascal tell me, why do i get that error? :cry:
Daubster DaubsterVault Dweller
Posted 19 years ago2005-07-24 15:43:42 UTC Post #123236
Is the program being interpreted or has it been compiled? Any PASCAL libraries differing on the different computers?
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-07-24 18:51:18 UTC Post #123268
few years ago i knew pascal good :o
Maybe the compilers version differs? you used different versions of pascal?
Posted 19 years ago2005-07-25 02:16:02 UTC Post #123310
Nahthe compiler ver. and the libraries should be the same, cause I used the same CD to install em in both my father's notebook and my PC...
I use Crt and Graph libraries... :(
Any more ideas?
Daubster DaubsterVault Dweller
Posted 19 years ago2005-07-25 04:18:48 UTC Post #123328
delete pascal
User posted image
Posted 19 years ago2005-07-25 08:03:02 UTC Post #123388
Everything sorted out now. The game works. Check it out here:
http://www.twhl.co.za/forums.php?action=viewthread&pg=last&id=8710
:D
Daubster DaubsterVault Dweller
Posted 19 years ago2005-07-25 09:00:57 UTC Post #123401
What was wrong?
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-07-25 09:17:29 UTC Post #123404
I googled the web for this problem and found a it. This problem usually occurs on all faster cpus from (PII and AMD K6). For some reason on faster cpus, the Crt libraries command "delay()" gets buggy and the compiler somehow thinks that you're trying to divide somethin by 0. I won't go into details, you can see for yourself here, if you exprience the problem too... :)
Daubster DaubsterVault Dweller
You must be logged in to post a response.