Thread: SDL app closes instantly

  1. #1
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532

    SDL app closes instantly

    This is probably just some stupid configuration mistake I have, but when I run my SDL program by clicking on the executable it flashes the window up and closes it instantly. However, when I tell Dev-C++ to Compile and Run it works fine. Has anyone encountered this before? I've written an SDL program a while back that worked correctly but that was on my Windows ME box, and this is on Windows XP Pro. It gives me no run-time errors and no compiler or linker errors I have that all setup correctly. The window just flashes up and closes. Any help is greatly appreciated.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    validate pointers and window handles

    Kuphryn

  3. #3
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    All my pointers and handles are valid, even if they weren't how would it run in Dev-C++ and not from the executable. All Dev does is execute it right? Hmm..
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL Window Closes...
    By FlyingIsFun1217 in forum Game Programming
    Replies: 11
    Last Post: 11-22-2007, 11:41 AM
  2. Problems compiling this SDL app
    By Rider in forum C++ Programming
    Replies: 3
    Last Post: 03-27-2007, 12:22 PM
  3. best program to start
    By gooddevil in forum Networking/Device Communication
    Replies: 4
    Last Post: 05-28-2004, 05:56 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. sdl in c++
    By Klinerr1 in forum C++ Programming
    Replies: 8
    Last Post: 07-07-2002, 07:46 AM