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 / i don't make game. why?

Author
Message
pavelman
4
Years of Service
User Offline
Joined: 9th Apr 2013
Playing: App Game Kit
Posted: 14th Mar 2017 05:58 Edited at: 14th Mar 2017 06:54
Runtime Error 7007 - Object already exists at line 154

+ Code Snippet

Help please find an error

Attach files don't work too

Attachments

Login to view attachments
revenant chaos
Valued Member
10
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 14th Mar 2017 09:05 Edited at: 14th Mar 2017 09:08
Hi pavelman, I havn't tried to run your code but it looks like the problem is the _give_variabes subroutine. It repeatedly calls free_object() and free_image() without creating/loading resources to actually use the returned ids, and so those functions are returning the same IDs for each and every call. It seems the simplest way to fix the issue would be to modify free_object() and free_image() functions to something like:
+ Code Snippet

Otherwise you could do away with the _give_variabes subroutine and call the free_????() functions as the media is being loaded.
pavelman
4
Years of Service
User Offline
Joined: 9th Apr 2013
Playing: App Game Kit
Posted: 14th Mar 2017 10:02 Edited at: 14th Mar 2017 13:09
it works. Thank you

Attachments

Login to view attachments

Login to post a reply

Server time is: 2017-12-15 14:04:55
Your offset time is: 2017-12-15 14:04:55