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

Author Topic: [Solved]Run-Time Failure  (Read 1966 times)

0 Members and 1 Guest are viewing this topic.

Hellgast23

  • Newbie
  • *
  • Posts: 6
    • View Profile
[Solved]Run-Time Failure
« 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
« Last Edit: February 09, 2013, 06:27:29 pm by Hellgast23 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10049
    • View Profile
    • development blog
    • Email
Re: Run-Time Failure
« Reply #1 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. :)

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].
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Hellgast23

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Run-Time Failure
« Reply #2 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 :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10049
    • View Profile
    • development blog
    • Email
AW: Run-Time Failure
« Reply #3 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

 

anything