Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DarkBasic Error codes

Author
Message
monty
23
Years of Service
User Offline
Joined: 12th Apr 2003
Location:
Posted: 12th Apr 2003 23:17
Where can I find out what those wonderful, meaningful error codes mean and how to fix them? The user guide doen't have anything. How 'bout a page on this site?
And please don't tell me that I have to buy the Beginner's Guide at $73 a copy.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Apr 2003 23:49
Do you mean DarkBASIC Pro or Classic?

Normally, in DBP and DBC, there is always a short explanation of the error, the only exception is DB Classic where when you run the compiled executable there is a rather confusing number.

Current Project: Retro Compo. Entry.
monty
23
Years of Service
User Offline
Joined: 12th Apr 2003
Location:
Posted: 13th Apr 2003 00:02
Yes I meant DarkBasic Pro. I am trying to load an image which I will then test for color values. I input the MtrxNmbr$ as a string and concatinate it to "Mtrx" and add ".bmp"
I have similar files in the folder, and it loads one and gives the error "Runtime error 1003. Could not load bitmapat line 34."
when I made the bitmaps I made sure they were RGB, 8 bit, Windows format.
Is there something about DBP that it requires a particular flavor for a bitmap image?
It baffles me as to why it will load one image and not the other.

Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 13th Apr 2003 02:57
Firstly, do a FILE EXIST() check first, to narrow down the problem, then check that the concantation is working correctly.

RGB/8/Win32 should be fine, but failing that, try RGB/24/Win32 or RGB/24/OS2.

Current Project: Retro Compo. Entry.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 13th Apr 2003 02:58
The error code just means exactly what the message says, there could be a variety of reasons for it.

Just like "Error 5" in Windows could mean a million different problems, all the PC can say is "Access Denied".

Current Project: Retro Compo. Entry.

Login to post a reply

Server time is: 2026-07-10 19:47:45
Your offset time is: 2026-07-10 19:47:45