[SDL] Windows Linking Problems

Sam Lantinga slouken at devolution.com
Mon Aug 6 07:40:02 PDT 2001


> but under windows, i have the problem, that i have to set the
> 'code-generation'-tab to 'multithreaded dll'. for sdl-use.

That's correct.

> but, if i do
> so, get some mysterious crashes. i can't tell the exact position in the
> code, because the application crashes at different locations ??

It sounds like there is a multi-threading bug in your code, possibly
memory corruption.  Are you locking the YUV surfaces before you access
them?  Multi-threaded memory corruption is the most common cause of this
type of problem.

> if i compile with the 'code-generation'-tab set to 'multithreaded' only,
> everything in the programm works fine, until SDL_init. here i get an
> access violation.

Have you tried building SDL in Debug, but with "Multithreaded DLL"?
That should help you debug the access violation.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list