I have an application which runs slower during the time (remarkable after days).
I still have no clue, where this is coming, but I see in Taskmanager, the app is constantly consume more memory (working set and commmit size).
I have special Traces to visualize Traces to differents OutputPanes.
I do this by simply add Traces to one and more different CStringList.
Like this code example
//////////////////////////////////////////////////////////////////////////
// TRACE HW_MESSAGES
void TRACE_HW(LPCTSTR pszstring)
{
CHwTestApp* pApp = &theApp;
if (pApp)
return;
TRACE(pszstring);
if (theApp.mStrHwList.GetCount() > kMAXTRACEs)
{
CString ob = theApp.mStrHwList.RemoveHead();
}
theApp.mStrHwList.AddTail(pszstring);
}
My question can CStringList become more ane more greater by calling RemoveHead and AddTail?
Does he compact at once internally his used physically memory or delayed?