In one program, I created one secondary thread which derived from
CWinThread, and m_bAutoDelete of this secondary thread was setted to FALSE.
The instance of this secondary thread was declared as one global variable,
and it also used some other global variables to do some processing. And in
destructor of those global variables class, all clean up work were done.
The problem was that , before program ended I used ::PostThreadMessage(...)
to post WM_QUIT to the secondary thread, and also it received this message
and ended, but the global variables always bring up memory leak.
What's wrong with the secondary thread?
Any help are appreciated, Thanks.
BR
aling
--