#Let the Thread complete
You should be allowing the thread to complete!
See the code in my PrimeNumber multi thread example!
void FPrimeNumberWorker::EnsureCompletion()
{
Stop();
Thread->WaitForCompletion();
}
void FPrimeNumberWorker::Shutdown()
{
if (Runnable)
{
Runnable->EnsureCompletion();
delete Runnable;
Runnable = NULL;
}
}
Rama