Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: app freezes on window API use :\  (Read 3945 times)

0 Members and 1 Guest are viewing this topic.

falconmick

  • Newbie
  • *
  • Posts: 17
    • View Profile
app freezes on window API use :\
« on: January 23, 2012, 06:03:41 pm »
code blocks were glitching on initial post, ive coppied and pasted my post as a reply

falconmick

  • Newbie
  • *
  • Posts: 17
    • View Profile
app freezes on window API use :\
« Reply #1 on: January 23, 2012, 06:07:23 pm »
heres the issue:
Code: [Select]

#include <SFML/Window.hpp>

////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
    // Create the main window
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

    // Start main loop
    bool Running = true;
    while (Running)
    {
        App.Display();
    }

    return EXIT_SUCCESS;
}


when I use this code a cmd line comes up and nothing else happens, I go into the debug/release folder and I can't find an executable even though my compiler (MVS2010) is telling me that it build successfully after a clean build... if I delete

Code: [Select]

 sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

and
Code: [Select]

App.Display();


which gives:
Code: [Select]

#include <SFML/Window.hpp>

////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
    // Create the main window
    //sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

    // Start main loop
    bool Running = true;
    while (Running)
    {
       // App.Display();
    }

    return EXIT_SUCCESS;
}



it runs successfully (I was using breakpoints, when I had that code it didn't even enter main, in this version it enters the loop without issue)
ive followed all of the tutorials down to the dot EXCEPT i have added sfml-window.lib; to the linker input as I was getting linker issues

what can I do?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
app freezes on window API use :\
« Reply #2 on: January 23, 2012, 09:55:32 pm »
ATI card with SFML 1.6?
Laurent Gomila - SFML developer

falconmick

  • Newbie
  • *
  • Posts: 17
    • View Profile
app freezes on window API use :\
« Reply #3 on: January 24, 2012, 07:04:49 am »
really :( it isn't compatable with HALF the computers in this world ;( whyyyy

falconmick

  • Newbie
  • *
  • Posts: 17
    • View Profile
app freezes on window API use :\
« Reply #4 on: January 24, 2012, 07:25:21 am »
found an apparent fix "atigktxx.dll", it made my PC blue screen -.- dont follow http://www.sfml-dev.org/forum/viewtopic.php?t=3438&postdays=0&postorder=asc&start=15 if u aint feelin lucky punks

Thecoast47

  • Newbie
  • *
  • Posts: 1
    • View Profile
app freezes on window API use :\
« Reply #5 on: January 29, 2012, 11:01:45 pm »
SFML 1.6 crashes when i try to init a window aswell.
It looks like i linked the libs correctly because the first program on the tutorial page compiled.

When I tried to compile the code featured on the window tutorial, it compiled.However, when i ran the program it just sat there at the console(unresponsive).

Is there anything i can do to fix this or should i just go back to SDL?

btw, im using codeblocks on window 7(32-bit)

CaptainPoopsock

  • Newbie
  • *
  • Posts: 1
    • View Profile
app freezes on window API use :\
« Reply #6 on: March 14, 2012, 04:12:17 am »
Quote from: "Thecoast47"
SFML 1.6 crashes when i try to init a window aswell.
It looks like i linked the libs correctly because the first program on the tutorial page compiled.

When I tried to compile the code featured on the window tutorial, it compiled.However, when i ran the program it just sat there at the console(unresponsive).

Is there anything i can do to fix this or should i just go back to SDL?

btw, im using codeblocks on window 7(32-bit)


Hate to dig this one up but I am running into the same problem. I've configured SFML 1.6, recompiled it, and even went as far as to compile and use SFML 2. I just cannot get a window to respond.

I'm using an nVidia card (560 Ti). Anyone have any ideas for why the window loads but hands and eventually stops responding? I am very eager to get into SFML but this is killing me. Literally spent an entire night on this. :(

 

anything