mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 23:49:28 +01:00 
			
		
		
		
	* Use STACK_SIZE_PARAM_IS_A_RESERVATION for stack sizes, should fix bug ID #17755
git-svn-id: trunk@33346 -
This commit is contained in:
		
							parent
							
								
									12d7061212
								
							
						
					
					
						commit
						65c880a7f6
					
				| @ -7,7 +7,7 @@ begin | |||||||
|   FInitialSuspended := CreateSuspended; |   FInitialSuspended := CreateSuspended; | ||||||
|   { Always start in suspended state, will be resumed in AfterConstruction if necessary |   { Always start in suspended state, will be resumed in AfterConstruction if necessary | ||||||
|     See Mantis #16884 }
 |     See Mantis #16884 }
 | ||||||
|   FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), CREATE_SUSPENDED, |   FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), CREATE_SUSPENDED OR STACK_SIZE_PARAM_IS_A_RESERVATION, | ||||||
|                          FThreadID); |                          FThreadID); | ||||||
|   if FHandle = TThreadID(0) then |   if FHandle = TThreadID(0) then | ||||||
|     raise EThread.CreateFmt(SThreadCreateError, [SysErrorMessage(getlasterror)]); |     raise EThread.CreateFmt(SThreadCreateError, [SysErrorMessage(getlasterror)]); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 michael
						michael