Additional note. This is inherited code that I am trying to fix.
I do not see m_bAutoDelete being set anywhere so I would have to say No to your first question.
CreateThread is being called as a Win32 API on the majority of calls but I do see three cases where CreateThread is being called via CWinThread.
So it seems we have a mixture of every type of CreateThread call there is and none of them are setting the bAutoDelete.
I thought most CWinThreads went away when the thread itself closed.
How is this bAutoDelete normally handled?
Thanks
Main Topics
Browse All Topics





by: alexey_gusevPosted on 2009-09-07 at 13:01:02ID: 25277008
rather simple question, but just to confirm: for AfxBeginThread(), do you set m_bAutoDelete for CWinThread object it returns?
? if the latter, then the same problem occurs.
another thing - CreateThread() - do you use Win32 API call or CWinThread::CreateThread()