Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Dozer

errors in fullscreen on windows

This topic is 5758 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement

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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!