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:
Guilhem Lavaux
1999-08-01 07:26:36 +00:00
parent 71cbe687e3
commit f439844be2
5 changed files with 27 additions and 41 deletions

View File

@@ -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);