Original Post
What happens if i call:
// First i have a globel function somewhere:
UINT ThreadOne(LPVOID param)
{
return 0;
}
// And in some of my weird OnSomeCrap() function i call:
AfxBeginThread(ThreadOne,this,0,0,0,NULL);
What happens if i am not catching the returned "CWinThread *" from the AfxBeginThread(...)? Do i have a problem then? I mean is the thread destroyed/killed after the funtion ThreadOne returns?
// Would that be any better?:
UINT ThreadOne(LPVOID param)
{
AfxEndThread(0);
return 0;
} Would that solve the problem?
[edited by - Jonus on January 14, 2003 10:12:45 AM]