http://docs.wxwidgets.org/trunk/classwx_thread.html
I made my own class that inherits wxThread, but its destructor is never executed.
Code: Select all
~MyThread();
Code: Select all
MyThread::~MyThread()
{
... // Set the thread pointer of my frame to 0 so I can check if this thread is executing or not.
}
I'm worried that the wxThread objects pile up over time and never die.
My thread calls this in its constructor:
Code: Select all
wxThread(wxTHREAD_JOINABLE)
EDIT: Had to create the threads as detached.