garbage management

BlitzMax Forums/BlitzMax Beginners Area/garbage management

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Might seema silly question but have you got a memory leak?
I leave Bmax to do all garbage collection but keep an eye on memory allocation. I keep a high-watermark and, from one run to another, if it's excessive or jumps too much I check what I added for problems.
The only advantage I can see (now) with manual GC is you know when it will be run (but not when memory will be reclaimed). If you want to go that route keep an eye on memory consumption and run gccollect during any spare cycles or when it's becoming a priority.