mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 00:09:26 +02:00
* thread creation failure for win<x>. Mantis 13798
git-svn-id: trunk@13188 -
This commit is contained in:
parent
c40d6cca8b
commit
82b9749e71
@ -20,6 +20,9 @@ begin
|
|||||||
if CreateSuspended then Flags := CREATE_SUSPENDED;
|
if CreateSuspended then Flags := CREATE_SUSPENDED;
|
||||||
FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), Flags,
|
FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), Flags,
|
||||||
FThreadID);
|
FThreadID);
|
||||||
|
if FHandle = TThreadID(0) then
|
||||||
|
raise EThread.create('Failed to create new thread, code:'+inttostr(getlasterror));
|
||||||
|
|
||||||
FFatalException := nil;
|
FFatalException := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user