Memory Usage just keeps on growing...

Blitz3D Forums/Blitz3D Programming/Memory Usage just keeps on growing...

The second one would be the first thing I would think of, but earlier code doesn't have the megabyte problem (though it does rise about 10K each time) despite not having had...

Ah. Wait. You're probably (although that's better read as hopefully) spot on there. When I flicked from using Text commands to using bitmap fonts, that's a lot of new images created that definitely aren't being freed. I think.

They're all local variables for the image handles. I guess I presumed that when they're discarded at the end of a function (they are, aren't they?) the same would happen to the images. Foolish logic and it's better to make sure they're freed up.

Suddenly my day is twice as bright.