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 / [LOCKED] cant load image....again

Author
Message
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 15th Sep 2003 16:52
this is annoying the bum off me, I had this little code bit that loaded an image, made a sprite and moved it about the screen, it was tutorial bit for a guy I am helping, first three times I ran it, it worked fine, then it all went pearshaped, when I run it I get a message on the lines of "unable to find image "image.bmp" " or "unable to load image on line 4" or it just crashes back to the editor, I have tried the following after reduceing the code to the minimum...

got another image to load
erased the project file
erased the program (dba) file
copied the program to word and then deleted the folders contents, remade the project and then pasted the text back into the editor and added another image (same name naturaly) to the folder
swore at the ide, the compiler, TGM, the monitor, the PC, anything else handy, threatened the PC with death

despite all these highly technical debug methods the program still won`t work, heres the whole code as I had it reduced to the minimum (does not work here still)



whats going on?, do I need a pump action shotgun to make my point?, any ideas about why things sometimes refuse to load, what do you do when this happens?, does this ever happen to you?, ANY idea welcome before I succumb to the urge to propel my PC out of the window and take up knitting.

Mentor.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th Sep 2003 17:01
The bitmap could be corrupt or not present (is the executable ending up in the TEMP directory or in the correct project folder ?)

E-Mail me the image and I'll see what happens...


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th Sep 2003 23:37
For some reason the executable was using a different name for the image. A re-installation helped in this case - unfortunately the actual cause isn't known (editor problem ?).


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester

Login to post a reply

Server time is: 2026-07-26 05:03:31
Your offset time is: 2026-07-26 05:03:31