SFML community forums

Help => General => Topic started by: AB on April 23, 2013, 01:06:59 pm

Title: I still can't create a window after reading the tutorial
Post by: AB on April 23, 2013, 01:06:59 pm
I followed the tutorial on "getting started" and "opening a window". I used the source code directly from the "opening a window" tutorial and it compiles without error in CodeBlocks. When I run the executable I don't get a window though. I've tried creating both a "console application" and "SFML project" in CodeBlocks but the result is always the same. What am I doing wrong?
Title: Re: I still can't create a window after reading the tutorial
Post by: Laurent on April 23, 2013, 01:23:17 pm
OS?
Version of SFML?
Graphics card?
Title: AW: I still can't create a window after reading the tutorial
Post by: eXpl0it3r on April 23, 2013, 01:26:38 pm
You should always start with an empty project.
Besides that I guess you ran into the ATI bug, i.e. you're using SFML 1.6 and an AMD card, right? :D
Title: Re: I still can't create a window after reading the tutorial
Post by: AB on April 23, 2013, 01:32:13 pm
OS?
Version of SFML?
Graphics card?

Windows 7
SFML 1.6
AMD Radeon HD 7700
Title: AW: Re: I still can't create a window after reading the tutorial
Post by: eXpl0it3r on April 23, 2013, 01:39:59 pm
Windows 7
SFML 1.6
AMD Radeon HD 7700
I can read minds! :P

So it's indeed the ATI bug. You should use SFML 2 or link statically. ;)
Title: Re: AW: Re: I still can't create a window after reading the tutorial
Post by: AB on April 23, 2013, 02:19:12 pm
So it's indeed the ATI bug. You should use SFML 2 or link statically. ;)

I'm not having any luck with SFML 2 either. I downloaded the Windows 32 bits - GCC SJLJ (Code::Blocks) version, deleted all files from 1.6, redid libs and include steps, used the "release" versions of the files, and used the source code from http://www.sfml-dev.org/tutorials/2.0/start-cb.php. It compiles without error but crashes when run.

Quote
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   Tetris.exe
  Application Version:   0.0.0.0
  Application Timestamp:   5176788c
  Fault Module Name:   sfml-window-2.dll
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   4f849b51
  Exception Code:   c0000005
  Exception Offset:   00004af9
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:   1040
  Additional Information 1:   0a9e
  Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:   0a9e
  Additional Information 4:   0a9e372d3b4ad19135b953a78882e789
Title: Re: I still can't create a window after reading the tutorial
Post by: Laurent on April 23, 2013, 02:23:56 pm
You must recompile SFML, or download a nightly build (see the "General discussions" forum), or wait for the official release next week :P
Title: Re: I still can't create a window after reading the tutorial
Post by: AB on April 23, 2013, 03:35:03 pm
You must recompile SFML, or download a nightly build (see the "General discussions" forum), or wait for the official release next week :P

I downloaded a nighly build but I don't know how to compile the files in the include folder.
Title: Re: I still can't create a window after reading the tutorial
Post by: Laurent on April 23, 2013, 03:38:27 pm
The purpose of a nightly build is to provide a built version. You don't have to compile it, you already have the binaries.
Title: Re: I still can't create a window after reading the tutorial
Post by: AB on April 23, 2013, 03:45:58 pm
The purpose of a nightly build is to provide a built version. You don't have to compile it, you already have the binaries.

You're right, the dll files are in the bin folder.
Title: Re: I still can't create a window after reading the tutorial
Post by: eigen on February 25, 2015, 04:15:49 pm
Sorry for bumping an ancient thread but it's still a problem with SFML 2.2 for my game. I'm yet to get the details from the user but I'm guessing they have an AMD card too (they always do...). Are you saying that statically linking would solve the problem?

Quote
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   Pioneers.exe
  Application Version:   0.0.0.0
  Application Timestamp:   54ece7af
  Fault Module Name:   sfml-window-2.dll
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   54b7f216
  Exception Code:   c0000005
  Exception Offset:   0000a070
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:   1033
  Additional Information 1:   0a9e
  Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:   0a9e
  Additional Information 4:   0a9e372d3b4ad19135b953a78882e789
Title: Re: I still can't create a window after reading the tutorial
Post by: Laurent on February 25, 2015, 04:24:53 pm
This bug applies to SFML 1.6 only. Your problem is a different one.
Title: Re: I still can't create a window after reading the tutorial
Post by: eigen on February 25, 2015, 04:43:22 pm
But what could cause a problem in sfml-window-2.dll? As I understand no window appears, it crashes before that.
Title: Re: I still can't create a window after reading the tutorial
Post by: Laurent on February 25, 2015, 04:49:14 pm
Quote
But what could cause a problem in sfml-window-2.dll?
Is it the code, or the environment which causes the problem? In other words, can this user run a simple SFML hello world window application?