What is wrong with this code?
CodeSnitch of Entrek (utility that allows profiling WinCE) emphasise the line with CreateSolidBrush as a resourse leak.
Assuming that in my test application there is no use of the m_Brush, this leak is really weird.
Can you explane it?
CPOEApp::CPOEApp(LPCTSTR lpszAppName): CWinApp(lpszAppName)
m_Brush.CreateSolidBrush(TOP_LABEL_COLOR); //resource leak