[SDL] SDL_CreateWindow Failing

ebyard e_byard at yahoo.co.uk
Fri Dec 31 07:56:36 PST 2010


My app on my target system, Windows XP with a Radeon HD4600 (also tested with another 2 XP systems) crashes when SDL_CreateWindow is called. I wrote a log file of each line of code, and that's where it ends. The crash is very inspecific: 

Faulting application pr1026.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

The code is just:

logFile->debug("SDL_SelectVideoDisplay \r\n");
SDL_SelectVideoDisplay(0);
logFile->debug("SDL_CreateWindow \r\n");
window1 = SDL_CreateWindow("WINDOW 1",0,0,config->getScrW(),config->getScrH(),SDL_WINDOW_SHOWN|SDL_WINDOW_INPUT_FOCUS|SDL_WINDOW_MAXIMIZED|SDL_WINDOW_BORDERLESS);

This all works fine on my 3x other Windows 7 systems so it looks like it's limited to Windows XP. 

I have built a program under SDL 1.2 which works fine - so it shouldn't be a directx thing (??)

Thanks
Ed




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20101231/6805c3b7/attachment-0007.htm>


More information about the SDL mailing list