SFML community forums

Help => Graphics => Topic started by: Zephilinox on August 09, 2012, 05:28:43 pm

Title: Crashes on RenderWindow
Post by: Zephilinox on August 09, 2012, 05:28:43 pm
I've tried 're-installing' SFML2 without any luck, it was working for me before. however when cmake failed to compile SFML2 this started happening, I removed SFML completely from the MinGW folder and the folder I used to use for linking, downloaded sfml2-rc, placed it in a folder outside of MinGW, linked it normally, added the .DLL's and this is still happening.

Windows Crash Report:

Problem Event Name:     APPCRASH
  Application Name:     SFML Test Dependency Project.exe
  Application Version:  0.0.0.0
  Application Timestamp:        5023d0a5
  Fault Module Name:    sfml-window-d-2.dll
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp:       4f7e379d
  Exception Code:       c0000005
  Exception Offset:     00002b85
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:    2057
  Additional Information 1:     0a9e
  Additional Information 2:     0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:     0a9e
  Additional Information 4:     0a9e372d3b4ad19135b953a78882e789

(http://i49.tinypic.com/s5byiv.png)

Ideas?

Oh, and the examples work fine.
Title: Re: Crashes on RenderWindow
Post by: eXpl0it3r on August 09, 2012, 05:36:33 pm
What version of GCC are you using?

Have you downloaded the right package, there are two packages for Windows GCC?
Title: Re: Crashes on RenderWindow
Post by: Zephilinox on August 09, 2012, 05:48:01 pm
I'm using 4.7, directly from the MinGW sourceforge page, and Code::Blocks SVN 8120 (or something)

I downloaded Windows 32 bits - GCC SJLJ (Code::Blocks) (15.7 MB)

I tried Windows 32 bits - GCC DW2 (11.5 MB) just now, and same problem.

if you look at the debugger error, it says I'm calling VideoMode with 600, 32, 2 instead of 800, 600, 32.
Title: Re: Crashes on RenderWindow
Post by: eXpl0it3r on August 09, 2012, 05:54:57 pm
You'll have to recompile SFML on your own if you're using GCC 4.7. ;)
Title: Re: Crashes on RenderWindow
Post by: Zephilinox on August 09, 2012, 06:02:35 pm
Ah, thanks, do I just do it normally with cmake? or is there anything extra I need to do?

Compiling it now, thanks for your help, I did have a small problem with cmake but that was because code::blocks added \mingw\ but not \mingw\bin to my PATH, all fixed :D
Title: Re: Crashes on RenderWindow
Post by: Laurent on August 09, 2012, 06:17:39 pm
You don't need anything else than the tutorial ;)