strange(?) issue pertaining to memory usage

BlitzMax Forums/BlitzMax Programming/strange(?) issue pertaining to memory usage

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.

as flameduck says it depends on your data structure, chasing down a cyclic data structure problem could be a nightmare

but in theory nulling all the stuff thats used should work

another idea to consider is have a function to "play" your level that uses only local vars, when the function returns from playing the level they will all go out of scope and be released

you could make it generic playlevel(l) and load in whatever data you need for level l, you could even get flash and use a function pointer for special code pertaining to specific levels...

the key is to use local vars in a function wherever possible