Jump to content
SubSpace Forum Network

Recommended Posts

Posted

When you created maps, then closed them, the memory usage would not drop back down to normal...

 

Problem was:

 

The map form uses a bunch of child classes (lvz, regions, line, testmap, selection, etc.)

When initializing, the map form calls 'setParent' on each of these, which tells them to keep a reference to the map form.

 

When unloading the form, it does terminate all these classes, but the reference stayed there, so the garbage collector would not clear it from memory, since it still had a reference.

 

Bleh. You can try it at home; open the task manager and watch memory usage. Create 10 empty maps, close them. Create 10 more, close them. Repeat until you're out of memory blum.gif

 

Was going to test the memory usage of the new layered display system I want to do, and I noticed that... good thing I find the problem quickly smile.gif

Guest
This topic is now closed to further replies.
×
×
  • Create New...