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 Discussion / Cannot Delete

Author
Message
zy_to ge_ry
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location: Canada
Posted: 18th Jan 2005 11:21
I am having problems with all delete commands I use in programs.
Regardless of the rest of the program's code, whenever I execute a program, and the compiler hits a line of code that has the process of deleting something, i.e.
Delete bitmap 1
the entire program shuts down and sends me right back to windows. Is there any reason why any delete command I use stops DarkBasic from working?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 18th Jan 2005 14:16
That is a strange error.

Does it give you any type of error at all? Or just ends the task and kicks you back to windows without warning?

Also, what version of DBC are you using?

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
MDTalley
20
Years of Service
User Offline
Joined: 13th Jan 2005
Location: Mobile, AL
Posted: 19th Jan 2005 00:44
Apologies if you've already thought of this...

The only reason I can think of, is that you haven't created the bitmap before you try to delete it. Check the program flow of your code to make sure it exists by the time it's deleted.
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 19th Jan 2005 03:32 Edited at: 19th Jan 2005 03:38
I'm having the same problem but only with the delete sprite command and I made sure the sprite exist with the condition, if sprite exist(), but the problem remain. And I have DBCe 1.13.

I'm here!
zy_to ge_ry
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location: Canada
Posted: 19th Jan 2005 07:02
Yes, I am positive it exists
No error code whatsoever appears when the problem happens
I am using DBClite ver 1.13
MDTalley
20
Years of Service
User Offline
Joined: 13th Jan 2005
Location: Mobile, AL
Posted: 19th Jan 2005 12:02
Can you post the source?
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 1st Feb 2005 02:54
An odd bug..

Try rebooting your computer, as it sounds as if the garbage-collection built in to DBC is playing up.

Avatar - white cat in a snowstorm. Look closely.

Login to post a reply

Server time is: 2025-05-29 05:45:24
Your offset time is: 2025-05-29 05:45:24