Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
TODO list HUGE memory leak
rickg22:
I did something similar to the plugin. It works on startup / shutdown, but when loading/unloading project, it's still blind.
However I did manage to speed it up significantly now, added some flags for reentrancy, file modification checks, and memory usage only goes to 33MB.
Unfortunately, the memory leak is STILL present. Everytime i hit "Refresh list", memory consumption goes up by 20 MB. I need memory debugging tools or something.
I'll commit tomorrow anyway, it seems the plugin's 100% usable now.
polygon7:
--- Quote from: rickg22 on June 20, 2007, 08:49:56 am ---Unfortunately, the memory leak is STILL present. Everytime i hit "Refresh list", memory consumption goes up by 20 MB. I need memory debugging tools or something.
--- End quote ---
Hi,
for Linux the best memory debuger is Valgrind, but I don't know any for Windows.
Biplab:
--- Quote from: rickg22 on June 20, 2007, 08:49:56 am ---I did something similar to the plugin. It works on startup / shutdown, but when loading/unloading project, it's still blind.
--- End quote ---
I've added couple of SDK functions to detect Project/Workspace Loading/Closing state. It's in rev 4114. :)
rickg22:
Biplab: Thanks! Also, I improved on them and there's a function for all plugins (I think you've seen it in the SVN log). It's ProjectManager::IsBusy(). It also checks the isShuttingDown to be safe.
Navigation
[0] Message Index
[*] Previous page
Go to full version