Tracker: Support Requests

5 thread handle leak resource - ID: 1105230
Last Update: Tracker Item Submitted ( s1gfr1d0 )

In Restart Thread win32.cxx
void PThread::Restart()
{
PAssert(IsTerminated(), "Cannot restart running thread");
here close old handle.....
#ifndef _WIN32_WCE
threadHandle = (HANDLE)_beginthreadex(NULL,
originalStackSize,
MainFunction, this, 0, &threadId);
#else
threadHandle = CreateThread(NULL, originalStackSize,
(LPTHREAD_START_ROUTINE) MainFunction,
this, 0, (LPDWORD) &threadId);
#endif
PAssertOS(threadHandle != NULL);
}

I think that you should call CloseHandle to free system
resource of previous started thread.


s1gfr1d0 ( s1gfr1d0 ) - 2005-01-19 05:13:09 PST

5

Open

None

Nobody/Anonymous

None

None

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.