errors in fullscreen on windows
hey all,
i dont know if anyone else has this problem,
but when i run my program in fullscreen on
windows, i get an error after i exit:
Project1 caused an invalid page fault in
module SDL.DLL at 0187:10020d6d.
Registers:
EAX=00000000 CS=0187 EIP=10020d6d EFLGS=00010246
EBX=00000002 SS=018f ESP=0258fbb0 EBP=0258fbec
ECX=00000001 DS=018f ESI=026ba9a0 FS=6b6f
EDX=00000002 ES=018f EDI=00000000 GS=0000
Bytes at CS:EIP:
ff 50 54 83 c4 08 8b 46 14 3b c7 8b 3d f8 a0 02
Stack dump:
00000000 026ba9a0 00000008 0040c0d8 0040984a 026ba9a0 00000000 7803bbb0 7803bbb0 0040c020 00000001 7800f56a 0258fc2c 7800f56a bff7b9c5 0258fc1c
any ideas?
-Dozer
[edited by - Dozer on September 29, 2002 2:31:50 PM]
Post some code where you init the video and create the main surface.
-----------------------------
Valkyrias: Tears of Valkyries
-----------------------------
Valkyrias: Tears of Valkyries
if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 )
{
printf("Unable to init SDL: %s\n", SDL_GetError());
exit(1);
}
atexit(SDL_Quit);
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 2048) < 0)
{
printf("Warning: Couldn''t set 44100 Hz 16-bit audio - Reason: %s\n", SDL_GetError());
}
SDL_WM_SetCaption("MegaOne v0.0", "icon.bmp");
SDL_WM_SetIcon(SDL_LoadBMP("icon.bmp"), NULL); //must be after video is initiated, and before SetVideoMode()
screen = SDL_SetVideoMode(640,480,16,SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_HWPALETTE|
SDL_ASYNCBLIT|SDL_FULLSCREEN);
if ( screen == NULL )
{
printf("error: %s\n", SDL_GetError());
exit(1);
}
- is SDL_ASYNCBLIT messing things up? i was told it''d make the blitting smoother
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement