I'm in need of help

BlitzMax Forums/BlitzMax Beginners Area/I'm in need of help

Ok.

Are you calling Release() on those variables at any point?

When do don't declare the variable with it's proper type
ie. this :-
Local myImg = LoadImage("..")

instead of this:-
Local myImg:TImage = LoadImage("..")

.. you create what is called an integer reference to the object. That is, the variable myImg is Int (and not TImage). These references MUST be released with a call to Release() when you are done with them, or you get a leak.

However if you were to do this :-

Local myImg:TImage = LoadImage("...")

myImage is now automatically garbage collected when it is not longer in scope (you basically don't need to worry about it after you've created it).

[edit]
Cor blimey Yan! you out-typed me!
[/edit]