Type memory leak
Blitz3D Forums/Blitz3D Programming/Type memory leak
| ||
So i have a program that shouldn't grow in size, once run. But it seems that, at least under win7 home prem, there is a memory leak when deleting and creating types. windows task manager will show the program memory continues to grow without end. I'm running blitzcc under winxp mode, not sure if that is the cause. |
| ||
Observations: -- The program as supplied uses only constant memory on my system (Windows XP SP3) when running in release mode. -- In debug mode, the memory usage does rise slowly in line with your results. -- RuntimeStats, inserted at the end of the loop, claims that only one unreleased object exists, so in theory that space should be being reclaimed. Assuming this isn't some kind of intentional debug mode behaviour (...being activated by Windows 7...?), this looks like it might be a legitimate bug for Win7 users. Last edited 2011 |
| ||
I found similar problems today while debugging... As I'm making extensive use of types (new... delete) memory usage is rising, slowly but constantly Has anyone else experienced this? |
| ||
Yasha I get the same results with RuntimeStats. And also RuntimeStats is a fix for the leak (release mode) ! I just hope there is no slowdown because it is in there. |