[fpc-devel] Thread REVERT
brandys at o2.pl
Sun Nov 6 11:55:44 CET 2005
Florian Klaempfl wrote:
> Ales Katona wrote:
>>Please remove ALL of my win32 thread patches(not the stacksize ones
>>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.
What about simply disabling such -Ct compiler switch (with nice error
message) under Windows ? Or maybe it should "do nothing" under Windows ?
More information about the fpc-devel