Hi,
When testing last version of SDL on a wince device I have notice a bug in
testalpha demo.
It seems WIN_Activate(this, active, minimized); is crashing in
SDL_sysevents.c L408 because
WIN_Activate is never initialized.
By the way maybe you should initialized function pointer to O and then
protect them like this :
if (MYFUNCPOINTER)
MYFUNCPOINTER(this, active, minimized);
That’s why I did for the crash
if (WIN_Activate)
WIN_Activate(this, active, minimized);
for now it works because I am testing in debug but I suppose if I test in
Release
it will still crash because WIN_Activate will point to random memory
location.
Normally WIN_Activate is initialized by DIB_CreateDevice but this function
is never call on
wince.
regards
Vincent R. schrieb:
Hi,
When testing last version of SDL on a wince device I have notice a bug in
testalpha demo.
It seems WIN_Activate(this, active, minimized); is crashing in
SDL_sysevents.c L408 because
WIN_Activate is never initialized.
By the way maybe you should initialized function pointer to O and then
protect them like this :
if (MYFUNCPOINTER)
MYFUNCPOINTER(this, active, minimized);
That’s why I did for the crash
if (WIN_Activate)
WIN_Activate(this, active, minimized);
for now it works because I am testing in debug but I suppose if I test in
Release
it will still crash because WIN_Activate will point to random memory
location.
Normally WIN_Activate is initialized by DIB_CreateDevice but this function
is never call on
wince.
regards
I guess you are using the gapi backend.
This is fixed in the SDL 1.2 SVN branch.
The corresponding WIN_Activate is defined in SDL_gapivideo.c
Cheers
Stefan