wxMemoryStream doc updated
Added auto-destruction in wxThread::Delete and wxThread::Kill Fixed thread destruction in thread sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -404,7 +404,9 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
|
||||
size_t count = m_threads.Count();
|
||||
for ( size_t i = 0; i < count; i++ )
|
||||
{
|
||||
m_threads[i]->Delete();
|
||||
// We must always use 0 because Delete() calls OnThreadExit() and
|
||||
// OnThreadExit() removed 0 from the array.
|
||||
m_threads[0]->Delete();
|
||||
}
|
||||
|
||||
Close(TRUE);
|
||||
|
Reference in New Issue
Block a user