What can cause a memory leak?
So I recently found out that MSI has a HUGE memory leak somewhere, which is causing Simba to return the dreaded code:8 error. I know basically nothing about this stuff, but I can only assume that your CPU shouldn't steadily increase as the script runs. I would like to know everything you guys can think of that may cause a memory leak. Also, if you've experienced this problem with MSI, post anything that may be helpful. Please Note: This happened without reflection included.
Quote:
Originally Posted by
grats
What I did notice is during break count down memory gets filled faster than any other time.
Quote:
Originally Posted by Coh3n
I noticed the memory steadily increasing while it was waiting for the tree to be chopped down, + a significant increase after walking.
- Not freeing bitmaps/DTM
I don't think this is the issue as MSI doesn't use bitmaps, and all the DTMs are loaded once when the script start. Plus, we've done it like this long before there was a memory leak.
- Not closing files
Again, I don't think this is it either because the debug files is only opened once during runtime, and the report file is closed and rewritten to each time MSI_ProgressReport is called. Not to mention I still had this problem when I turned debug saving off.
I don't care if you think it's stupid, post it. This needs to be solved ASAP.