I compile my code and it compiles and runs fine, but when I try to compile it the next time, I get the following error(s)
"object number not found:1004"
followed by
"Runtime Error 7008 - Object does not exist at line 32"
Then I just hit F5 to compile and run again and it works fine again. So basically I get this erroneous error every other time I compile. So I thought this must mean that some object/variable is staying in memory or something like that?
Now I realize that I could just keep hitting F5 twice each time I compile, but this is the sort of thing that nags at me in my sleep.
Anyone know what causes this? Is there a command that tells DBPRO to wipe all variables, objects, data, etc from memory at program termination? Is this a memory leak problem??
I am not sure if you need it or not but here is the line(s) in question. I included the line #'s
30 for x = 4 to numbirds
31 v=rnd(3)+1
32 clone object bird(x), bird(v)
33 set cursor 10,10 : print "Loading penguin ";x
34 sync
35 scale object bird(x),500,500,500
36 next x
Mark the GameBuilder
[url]www.GameBuilder.org[/url]