Unable to properly run SDL applications in windows

Started by
23 comments, last by basement 18 years, 2 months ago
Quote:Original post by noteventime
I've tried 5 different DLL's.


Maybe it's one of the alternate libs, like sdl-mixer etc. Did you tried replacing those?

Could it be a problem with a device, like a joystic or something?

This is pretty wierd.

PS: Did you scanned your computer for viruses?
[size="2"]I like the Walrus best.
Advertisement
Try to see if SDL inits successfully or does not. This should help you figure out where your problem is.
Quote:Original post by noteventime
Hello,
Whenever i try to run a SDL application in windows the window "freezes", by that i mean nothing is drawn in it and only what was behind the window when the application started is seen in the window (kinda hard to explain :D).
I've tried two different versions of SDL and four different DLLs.
I've tried both programs written in python and C++, I'v tried wriing them myself and those written by others.
I've tried compiling myself and precompiled binaries.
Nothing works :'(.

SDL works like a charm in KUbuntu linux on the same computer.

Intel (yes i know they suck) Pentium M 1.73Ghz
1024MB DDR RAM
Intel 915i GM express or whatever it is called.


does it work in fullscreen?
Ahhh....
Apps work in fullscreen but not in windowed. (^_^) One step further.
I've now also tried installing a new version of DirectX, didn't help either.
What type of project did you start is as, ie: Win32?
--brb
Quote:Original post by noteventime
Ahhh....
Apps work in fullscreen but not in windowed. (^_^) One step further.


how complicated must the program be before it wont work:

ie, does something like this work

EDIT: coded from memory, quite possible i've forgotten something
int main(int, char**){   if( SDL_Init(SDL_INIT_VIDEO) < 0 ){       cout << SDL_GetError() << endl;}   SDL_Surface *screen = SDL_SetVideoMode(300,300,SDL_SWSURFACE);   if( !screen )   {      cout << SDL_GetError() << endl;   }   while(1)   {      SDL_Event event;      while( SDL_PollEvent(&event) )      {          if( event.type == SDL_QUIT )             return 0;      }      SDL_UpdateRect(0,0,0,0); // comment this out if it doesnt work   }   return 0;}


if that doesnt work then all i can think of is that SDL is trying to do something funky that your graphics card cant do, and it fails.
rip-off:
That application freezes too.
"rip-off:
That application freezes too.
But pressing Esc quits it, so its just a problem with the graphics."

Sorry i forgot to login last time

Pressing Esc quits the program, so it's only a problem woth the graphics.
Quote:Original post by noteventime
"rip-off:
That application freezes too.
But pressing Esc quits it, so its just a problem with the graphics."

Sorry i forgot to login last time

Pressing Esc quits the program, so it's only a problem woth the graphics.


so what does the apllication look like? just has the underneath of whatever program you had before where there should be this application? ( a screenshot could help explain )....

This topic is closed to new replies.

Advertisement