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

Author Topic: Run-Time Check Failure #2 - Stack around the variable 'Music  (Read 4573 times)

0 Members and 1 Guest are viewing this topic.

d3ftp

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hi!
I have this error when i  compile my program
Code: [Select]
Run-Time Check Failure #2 - Stack around the variable 'Music' was corrupted. Can you help me?
What is wrong with my nick? should be "Łukasz"

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Run-Time Check Failure #2 - Stack around the variable 'Music
« Reply #1 on: July 21, 2011, 11:17:07 pm »
You don't give us much information... What's your OS, compiler, version of SFML? Does this happen with the official SFML examples?

Quote
What is wrong with my nick? should be "Łukasz"

Seems like non-ASCII characters are replaced with their HTML code. If you want me to change something send me a PM ;)
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Run-Time Check Failure #2 - Stack around the variable 'Music
« Reply #2 on: July 22, 2011, 12:01:18 am »
This error usually occurs if you link debug libraries in release mode or vice versa. Make sure you use the correct configuration of the SFML libraries.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

d3ftp

  • Newbie
  • *
  • Posts: 7
    • View Profile
Run-Time Check Failure #2 - Stack around the variable 'Music
« Reply #3 on: July 22, 2011, 11:38:32 am »
Quote from: "Laurent"
What's your OS, compiler, version of SFML?

Windows Vista 64bit,Visual studio 2010, SFML 1.6.
Quote from: "Laurent"
Does this happen with the official SFML examples?

Yes.

I added lib files in Linker / Input (sfml-system.lib ,sfml-audio-d.lib,sfml-audio-s-d.lib,sfml-audio.lib)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Run-Time Check Failure #2 - Stack around the variable 'Music
« Reply #4 on: July 22, 2011, 12:04:29 pm »
You must recompile SFML with VC++ 2010, the 2008 libs are not compatible.
Laurent Gomila - SFML developer

d3ftp

  • Newbie
  • *
  • Posts: 7
    • View Profile
Run-Time Check Failure #2 - Stack around the variable 'Music
« Reply #5 on: July 22, 2011, 01:21:48 pm »
How do this?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Run-Time Check Failure #2 - Stack around the variable 'Music
« Reply #6 on: July 22, 2011, 01:47:18 pm »
Open SFML.sln, let the wizard convert the projects, select your build configuration (debu/release, static/DLL) and build.
Laurent Gomila - SFML developer

d3ftp

  • Newbie
  • *
  • Posts: 7
    • View Profile
Run-Time Check Failure #2 - Stack around the variable 'Music
« Reply #7 on: July 22, 2011, 11:02:10 pm »
It works. thx for help.

 

anything