memory issue with Graphics command

BlitzMax Forums/BlitzMax Programming/memory issue with Graphics command

Grafos(Posted 2010) [#1]
I have run into a memory problem with my game.
This is a stripped down version (so that it's clearer what I am doing) of the code I use to change from full screen to windowed mode and vice versa.



The actual code is more complex and deals with aspect ratio, (commenting it out did not make a difference memory-wise), but I've found that the culprit is the Graphics command. Every time the user changes screen mode, it keeps adding several megabytes (around 40) of memory usage which does not clear.

At first I didn't use the EndGraphics command, but then I found it on the manual and thought that maybe I need to "end" the Graphics the same way I close a stream to free up the memory used. Unfortunately the EndGraphics command didn't make any difference. Anyone knows how I can clear the memory from the Graphics command?


GfK(Posted 2010) [#2]
Its a known issue.


Grafos(Posted 2010) [#3]
Oh! Sorry, I did search for it before posting, but somehow missed that thread. Darn, I am ready for publishing, I hope a fix will come out REALLY soon!


Grafos(Posted 2010) [#4]
Oh, just saw there is also a fix in that thread, cool! Thanks Gfk!