09-09-2016, 08:00 AM
I recommend to review all your macros that get icon and make sure that all icons are finally destroyed. Not destroying an icon is a serious memory leak that may affect all processes, not only QM, because icon handles are shared by all processes, and their allowed number is limited. If icon is assigned to an int or directly passed to a function, call DestroyIcon when it is not longer used. Or assign to a __Hicon variable, it will call DestroyIcon in destructor.