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 / runtime error 7013 matrix does not exist at line 16

Author
Message
frugi
18
Years of Service
User Offline
Joined: 6th Jul 2008
Location:
Posted: 17th Jul 2011 16:54
I cant imagine why the matrix does not exist because i always make a matrix before using this command. if i delete it in line 17 before endif it will be deleted but otherwise i get this error.
this is my main loop:



thanks for help
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Jul 2011 17:25 Edited at: 19th Jul 2011 01:25
My guess is that the scancode for deleting the matrix is still detected for a few milliseconds after the matrix has been deleted, i.e. it tries to delete the matrix a second time and then you get the error. A simple solution is to check that the matrix exists before deleting it as in the following which works for me:



[Edited spelling. ]
frugi
18
Years of Service
User Offline
Joined: 6th Jul 2008
Location:
Posted: 17th Jul 2011 17:31
it works im so happy
thanks a lot =)

Login to post a reply

Server time is: 2026-07-10 10:20:15
Your offset time is: 2026-07-10 10:20:15