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

Author Topic: SFML window is not responding and how to remove console  (Read 6427 times)

0 Members and 1 Guest are viewing this topic.

treiguts

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML window is not responding and how to remove console
« on: June 23, 2011, 05:33:28 pm »
I'm on Windows 7 and using Code Blocks.
Done this tutorial and it works.

This tutorial compiles, but after launching, window goes "Not responding". Also tried it on Visual Studio 2010 - same.

And how to remove that console that shows along with Window?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
SFML window is not responding and how to remove console
« Reply #1 on: June 23, 2011, 06:07:23 pm »
Quote
This tutorial compiles, but after launching, window goes "Not responding". Also tried it on Visual Studio 2010 - same.

ATI graphics card?

Quote
And how to remove that console that shows along with Window?

You must create a Win32 GUI project instead of a console one. You can also change an option in your existing project, I don't remember which one in Code::Blocks. With Visual Studio, it's "Linker/System/Sub-system" -> "Windows".
Laurent Gomila - SFML developer

treiguts

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML window is not responding and how to remove console
« Reply #2 on: June 23, 2011, 06:19:07 pm »
Yes I have ATI. What now? :(

And I managed to remove console through Project>Properties>Build Targets>Type. Thanks.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
SFML window is not responding and how to remove console
« Reply #3 on: June 23, 2011, 06:32:57 pm »
Quote from: "treiguts"
Yes I have ATI. What now? :(

And I managed to remove console through Project>Properties>Build Targets>Type. Thanks.
Use SFML2 instead. This has been fixed for SFML2.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
SFML window is not responding and how to remove console
« Reply #4 on: June 23, 2011, 06:38:46 pm »
Or link to the static version (-s) of the SFML libraries.
Laurent Gomila - SFML developer

treiguts

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML window is not responding and how to remove console
« Reply #5 on: June 23, 2011, 08:49:52 pm »
I did create SFML2. After compiling, there is only "lib" directory with sfml .dll files and libsfml .a files. There is no folder "include" like in 1.6 version.

This is supposed to be like this?

And do I have to replace old (1.6 version) .dll files with new .dll files?

treiguts

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML window is not responding and how to remove console
« Reply #6 on: June 25, 2011, 10:28:20 am »
Quote from: "OniLink10"
Quote from: "treiguts"
Yes I have ATI. What now? :(

And I managed to remove console through Project>Properties>Build Targets>Type. Thanks.
Use SFML2 instead. This has been fixed for SFML2.


Don't know what have been fixed, but it still ain't working. Linking to static libraries and I'm still getting "Not responding".

Tried with SFML 1.6 and SFML 2.0

Edit: I managed to fix problem. Appears that OS stops my window because there is no event handling.

renton_django

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML window is not responding and how to remove console
« Reply #7 on: September 01, 2011, 05:18:44 am »
treiguts,

How did you fix this?

I as well have tried SFML/SFML2, with static libraries and am still experiencing this issue.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
SFML window is not responding and how to remove console
« Reply #8 on: September 02, 2011, 01:55:49 am »
Quote from: "renton_django"
treiguts,

How did you fix this?

I as well have tried SFML/SFML2, with static libraries and am still experiencing this issue.
He said it was because he wasn't handling events.
I use the latest build of SFML2

renton_django

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML window is not responding and how to remove console
« Reply #9 on: September 02, 2011, 06:08:50 pm »
I read that. I was looking for something a little more detailed.

Anyways, I rebuilt my libraries and got it working.

 

anything