first of all, I am no windows expert, and thus i hope someone here can
help me.
i have to port our video-player from linux to windows. that should’t be
a big problem, with sdl. but for me, it is. under linux everything works
fine.
but under windows, i have the problem, that i have to set the
’code-generation’-tab to ‘multithreaded dll’. for sdl-use. 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 ??
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.
i tried to compile SDL myself, with ‘multithreaded’ option, but linking
this ‘SDL_Static_lib’ fails because of undefined external sybols.
“Christian Spitzner” a ?crit dans le message news:
mailman.996849903.13549.sdl at libsdl.org…
hi,
first of all, I am no windows expert, and thus i hope someone here can
help me.
i have to port our video-player from linux to windows. that should’t be
a big problem, with sdl. but for me, it is. under linux everything works
fine.
but under windows, i have the problem, that i have to set the
’code-generation’-tab to ‘multithreaded dll’. for sdl-use. 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 ??
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.
i tried to compile SDL myself, with ‘multithreaded’ option, but linking
this ‘SDL_Static_lib’ fails because of undefined external sybols.
does anybody know, how to cope with my problem?
thanks in advance
christian
which compiler do you use ?
mingw/cygwin or Visual C++ ?
first of all, I am no windows expert, and thus i hope someone here can
help me.
i have to port our video-player from linux to windows. that should’t be
a big problem, with sdl. but for me, it is. under linux everything works
fine.
but under windows, i have the problem, that i have to set the
’code-generation’-tab to ‘multithreaded dll’. for sdl-use. 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 ??
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.
i tried to compile SDL myself, with ‘multithreaded’ option, but linking
this ‘SDL_Static_lib’ fails because of undefined external sybols.
does anybody know, how to cope with my problem?
thanks in advance
christian
which compiler do you use ?
mingw/cygwin or Visual C++ ?
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