[fpc-devel] Thread REVERT

Florian Klaempfl florian at freepascal.org
Sat Nov 5 10:58:28 CET 2005


Ales Katona wrote:

> Please remove ALL of my win32 thread patches(not the stacksize ones

Reverted.

> tho). Thanks to neli, I now know that ThreadFunc is not called directly
> by the OS, but my ThreadMain which already IS stdcall. My "bug" with
> threads was actualy cause by a -Ct (check stack) switch which in win32
> always causes a runtime error 202 (stack overflow) because of the
> default value for stack size which is 0.
> 
> So to sum it up, no patches required, bug is not a bug but a feature(the
> feature should get fixed IMO but I have no idea how stack checking works)

Me neither, at least not in win32 threads :) Probably no stack checking
required at all becuase windows does it.



More information about the fpc-devel mailing list