SFML community forums

Help => Window => Topic started by: Hellgast23 on February 09, 2013, 12:25:44 am

Title: [Solved]Run-Time Failure
Post by: Hellgast23 on February 09, 2013, 12:25:44 am
Hello, I just started with SFML but I have been stuck, trying to get this work for a few days now.
When I try to start the following code, it runs and opens the window, but when I use Esc or the Cross to close it, it gives me some error, wich you can see on the screenshots.
I'm using windows7, Visual C++ Express 2008 and sfml 1.6.

Some help would realy be appriciated! :)

Greetz,
Hellgast

Here is the code:
(click to show/hide)

Here is a screen shot when ran without debugging:
(click to show/hide)

Here are some screenshots when ran with debugging
(click to show/hide)
http://imgur.com/3oWVsIC,9Ai9eHC,wTknSS3,7jPG6YJ#0
Title: Re: Run-Time Failure
Post by: eXpl0it3r on February 09, 2013, 01:54:29 am
I don't know how it could get corrupted, but I suggest you take a look at this (https://github.com/SFML/SFML/wiki/FAQ#wiki-grl-version). :)

Also you should always take a look at how your post will gonna look like. There's not spoiler tag in this forum and you can scale the images, by setting [img width=XXX].
Title: Re: Run-Time Failure
Post by: Hellgast23 on February 09, 2013, 10:40:34 am
Atm, its working when using the release, instead of debug. (debug still gives the same error tho)
Didn't really use the release option before,
Also, after reading the FAQ you linked, I got reminded that i also need the system.hpp header and link if I wanne use the window package,
so thanks :)
Title: AW: Run-Time Failure
Post by: eXpl0it3r on February 09, 2013, 12:23:53 pm
Well the idea of the link, was to suggest SFML 2 over SFML 1.6. ;)

Make sure you're not mixing debug and release modes. The debug libraries have the -d suffix.