MantisBT - MPfm
View Issue Details
0000134MPfmUI | Custom Controls | Windows (WinForms)public2011-06-12 07:232012-04-22 10:17
ycastonguay 
ycastonguay 
highmajoralways
resolvedfixed 
0.4.4.6 
0.4.4.70.4.4.7 
0000134: For all custom controls, make sure the resources are disposed properly in the OnPaint event
The memory usage of MPfm varies between 60 MB and 90 MB and now I'm suspecting some OnPaint events aren't clearing the resources properly. Check every OnPaint event for every control and make sure stuff is disposed properly
No tags attached.
Issue History
2011-06-12 07:23ycastonguayNew Issue
2011-06-12 07:23ycastonguayStatusnew => assigned
2011-06-12 07:23ycastonguayAssigned To => ycastonguay
2011-06-12 07:30ycastonguayNote Added: 0000063
2011-06-12 07:30ycastonguayStatusassigned => resolved
2011-06-12 07:30ycastonguayFixed in Version => 0.4.4.7
2011-06-12 07:30ycastonguayResolutionopen => fixed
2012-04-22 10:17ycastonguayCategoryGlobal => Windows Controls
2012-04-24 20:59ycastonguayCategoryWindows Controls => UI | Windows | Custom Controls
2012-04-24 20:59ycastonguayCategoryUI | Windows | Custom Controls => Custom Controls | Windows
2012-04-24 21:00ycastonguayCategoryCustom Controls | Windows => UI | Custom Controls | Windows
2012-04-24 21:01ycastonguayCategoryUI | Custom Controls | Windows => UI | Custom Controls | Windows (WinForms)

Notes
(0000063)
ycastonguay   
2011-06-12 07:30   
WOW, the application used to vary between 60MB and 100MB, the memory usage was always going up and then go back to 60MB. I thought it was the FMOD stream, but it was the paint events not disposed properly.

The application now takes between 45MB and 60MB of RAM usage. But during playback the memory varies just by 1MB, which is a huge difference than 40MB before.

A 18-min 16-bit 44.1kHz FLAC file takes 220MB of RAM during the wave form peak file generation.