* thread creation failure for win<x>. Mantis 13798

git-svn-id: trunk@13188 -
This commit is contained in:
marco 2009-05-23 15:40:13 +00:00
parent c40d6cca8b
commit 82b9749e71

View File

@ -20,6 +20,9 @@ begin
if CreateSuspended then Flags := CREATE_SUSPENDED;
FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), Flags,
FThreadID);
if FHandle = TThreadID(0) then
raise EThread.create('Failed to create new thread, code:'+inttostr(getlasterror));
FFatalException := nil;
end;