Samapico Posted October 12, 2007 Report Posted October 12, 2007 Sub DestroyMap(id) '......... Set Maps(id) = Nothing loadedmaps(id) = False '......... How about Unload Maps(id) before that? ... that might help. There are a few other forms that aren't unloaded correctly when the program ends too... edit: all fixed (i think)well it's a cheap patching for now, but everything unloads. Some stuff should be unloaded way before that though Oh, and drake and me discussed some ways of making the selection MUUUUUUUUUUUCH faster... I wouldn't be surprised if it's 5 to 10 times faster. So emm yeah... good stuff coming Just gotta finish pimping the whole tileset/lvz images thing Quote
Hakaku Posted October 12, 2007 Report Posted October 12, 2007 Should that fix the crashing problem when quitting the program in Vista? Quote
Samapico Posted October 12, 2007 Author Report Posted October 12, 2007 Yes it will Plus it will fix the problem of DCME eating 150MB of RAM even after you closed all your maps Quote
Drake7707 Posted October 12, 2007 Report Posted October 12, 2007 Oh nice catch , normally vb's garbage collection should take care when all references to an object is gone, but i think this doesn't work with forms because they have a message pump meaning they can always get referenced by the mouse or keyboard, and also forms can be listed in a collection Forms. Quote
Samapico Posted October 12, 2007 Author Report Posted October 12, 2007 and also forms can be listed in a collection FormsYeah, that's how i realised it wasn't being unloaded... in MDI_Form unload i made it pop up msgboxes for each form still in Forms collectionthere was... floattilesetfloatradarfrmMainfrmGeneral (but that was normal) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.