Hi
how can i kill a CWinThread .. thread ??
I've created it .. with AfxBeginThread()
Code:
BOOL CSerialPort::StartMonitoring()
{
if (!(m_Thread = AfxBeginThread(CommThread, this)))//erzeuge thread
return FALSE;
TRACE("Thread started\n");
return TRUE;
}
.. i can suspend the thread but somehow i got problems if i suspend the thread in the main dialog and start it aftewards in another dialog. It wont work like i want it.
anyone know how i can kill or stop the thread permanently ??