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

Author Topic: Corrupted Stack Problem in Visual Studio 2011 Beta  (Read 2374 times)

0 Members and 1 Guest are viewing this topic.

Chasey

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Corrupted Stack Problem in Visual Studio 2011 Beta
« on: May 11, 2012, 07:41:03 pm »
Hi,

I'm getting the following error using the tutorial code for visual studio

Run-Time Check Failure #2 - Stack around the variable 'text' was corrupted.

I made sure to link to the debug libraries which usually solves this problem for others. Would this maybe be specific to visual studio 2011?

here are some images of my settings

http://imgur.com/a/WzrYW

any ideas?


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Corrupted Stack Problem in Visual Studio 2011 Beta
« Reply #1 on: May 11, 2012, 08:14:02 pm »
Have you correctly compiled SFML?

In case you want to answer "no, should I?", here is a quote from the tutorial:
Quote
Important: you must download the package that matches your version of Visual C++. Indeed, a library compiled with Visual C++ 2008 won't be compatible with Visual C++ 2005 or 2011 for example. If there's no SFML package compiled for your version of Visual C++, you will have to recompile SFML.
Laurent Gomila - SFML developer

Chasey

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Corrupted Stack Problem in Visual Studio 2011 Beta
« Reply #2 on: May 11, 2012, 09:41:39 pm »
Thank you,

I was working with the 2010 version recently and forgot to update it  ::)