[SDL] Bug in thread implementation under windows?

Alex Volkov avcp-sdlmail at usa.net
Tue Nov 15 12:04:09 PST 2005

Bruno Martínez wrote:
> I think I've spotted a bug in the implementation of thread 
> under windows.  Currently it uses the CreateThread call,
> but it should use _beginthreadex, in order to do some C lib
> startup, according to the msdn docs

Indeed, since the SDL.dll links to (and uses) MSVCRT.DLL, it should call
_beginthread (not necessarily _beginthreadex) from the MS crt to create
threads. The penalty for not doing so, however, is a small memory leak per
ended thread.


More information about the SDL mailing list