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.

Author
Message
KYP
20
Years of Service
User Offline
Joined: 5th May 2005
Location: 01110000
Posted: 1st Oct 2005 03:42
I'm having a problem with my executable... I have a game called Squirrel Wars written in darkbasic, and when I compile it in the editor it works perfectly. I saved it to an executable, but when i click on it something weird happens. It gets to the main menu, but when i click on a button, it exits and gives me error 37. I know the error has nothing to do with media, functions, file deleting and file creating, and gosub and goto. Does anyone know what it means?

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 1st Oct 2005 03:50
Bitmap does not exist.

TDK_Man

KYP
20
Years of Service
User Offline
Joined: 5th May 2005
Location: 01110000
Posted: 1st Oct 2005 03:58
Great idea! But, I'm kind of wondering why it would work in the editor but not on the exe...

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 1st Oct 2005 04:56
If the exe is running in the same folder as the DBA file, then it may be down to the exe running a little faster.

In your program, anywhere you have a Get Image command, try putting a Wait 1 on the next line - especially if the next line uses the image you just grabbed.

My theory is that in a compiled program, the line following the Get Image is executed before the Get Image has completed - the result is that the image is not yet available for the next line. This then throws up the Bitmap Does Not Exist error.

This may be rubbish, but it's only a theory. All you can do is try it and see if it fixes your problem.

If it does, you can then join me in theorising exactly what is happening...

TDK_Man

KYP
20
Years of Service
User Offline
Joined: 5th May 2005
Location: 01110000
Posted: 1st Oct 2005 22:52 Edited at: 15th Aug 2007 21:23
That might have been it, but I'm not really sure. All I know is that I took out the bitmap that was causing the problem and it stopped. Thanks!

Edit: Wow, I edited this when it was locked.


I'm the animation guy!

Login to post a reply

Server time is: 2025-05-22 14:53:41
Your offset time is: 2025-05-22 14:53:41