I am using thread
hThreadat = CreateThread(NULL,0,MyFunc,&m_ThreadVec,0,&ThreadIDat);
and code for MyFunc
DWORD WINAPI MYFunc(LPVOID temp)
{
//some code
boost::thread u(&faceThread);
u.interrupt();
return 0;
// new code end}
Problem is= When I close the application all hThreadat threads terminates but boost thread don't. It cause error. How do I close that boost thread when i close the application. Actually boost thread is cascaded within windows threads. Thanks in Advance.