Jump to content
  • Advertisement
Sign in to follow this  
noteventime

Unable to properly run SDL applications in windows

This topic is 4556 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

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.

Share this post


Link to post
Share on other sites
Advertisement
Please write what is the:

- Windows version
- SDL version
- compiler version

Also, it would help if you could post here smallest possible example of a program which reproduces your problem.

Personally, I'm running SDL 1.2.8/1.2.9 apps on Windows XP for about 1,5 year and never had such problems :-) probably there's sth wrong with the way you're handling your events.

Share this post


Link to post
Share on other sites
I know what you are describing. It's how mine behaved when I accidently left out the code to swap the graphics buffers. Have you included this in your render function?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.


Umm... Happened here also; are you loading something? This might not be the problem, but the only thing I can think of is some kind of infinite loop, or some kind of loading problem...

What compiler, and what windows version?

Does this work?

#include <SDL/SDL.h> // Bah, whatever it is :).

int main(int, char*[]) {
SDL_Init(SDL_INIT_VIDEO);
SDL_Delay(2000);
SDL_Quit();
}



C++

Share this post


Link to post
Share on other sites
Quote:
Original post by Koshmaar
Please write what is the:

- Windows version
- SDL version
- compiler version

Quote:
Original post by Anonymous Poster
What compiler, and what windows version?

Share this post


Link to post
Share on other sites
Quote:
Original post by noteventime
It's not a problem with any programs i write, it's with all applications using SDL, for example ScummVM.


Maybe the dll got screwed somehow. Virus? Replace sdl.dll and see what happens.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!