mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +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;
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user