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

Author Topic: .. Stack around the variable 'window' was corrupted ..  (Read 9390 times)

0 Members and 1 Guest are viewing this topic.

HeinzK

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • ZwiAner
    • Email
.. Stack around the variable 'window' was corrupted ..
« on: October 26, 2013, 09:34:24 am »
deleted
« Last Edit: December 04, 2019, 08:31:17 am by HeinzK »
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: .. Stack around the variable 'window' was corrupted ..
« Reply #1 on: October 26, 2013, 09:53:14 am »
Well you probably did something wrong, so show us the exact code you used (yes we know what it should be, but maybe you mistyped it), all the relevant VS settings, what files are in the folder where you're running it, and anything else you can think of (I have no idea where it is).

And make sure you're not mixing static/dynamic or debug/release libraries; that's an insanely common error.

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: .. Stack around the variable 'window' was corrupted ..
« Reply #2 on: October 26, 2013, 10:34:01 am »
I don't think this solves your core problem, but part of the info you added implies you aren't aware of this, so: is your visual studio 32-bit or 64-bit?  This is different from the OS being 32-bit or 64-bit, and any libraries compiled with one won't work with the other (even though 32-bit standalone executables normally work fine on 64-bit Windows).

Even more minor thing: Don't use main(void).  Either just main(), or main(int argc, char** argv) or some special thing like _WinMain.  The (void) thing is a relic from C.

Hopefully someone else will spot the real problem I'm missing.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: .. Stack around the variable 'window' was corrupted ..
« Reply #3 on: October 28, 2013, 04:26:39 pm »
Try to use the default value for Zeichensatz (should be "multibyte").
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: .. Stack around the variable 'window' was corrupted ..
« Reply #4 on: November 04, 2013, 02:48:24 pm »
Are you sure that you've downloaded the SFML SDK for VC++ 11 and not for VC++ 10, for example?
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: .. Stack around the variable 'window' was corrupted ..
« Reply #5 on: November 21, 2013, 10:08:44 am »
Make sure you create a new empty project and don't change any compiler flags, only the things that are necessary to make it work (like include/library paths and linker dependencies). Triple-check that you follow the official tutorial exactly (I know it's annoying, but this usually works, so it's worth checking).

If you still don't succeed, then recompile the SFML code for VS 2012 using CMake, again following the tutorial step by step.
« Last Edit: November 21, 2013, 10:10:49 am by Nexus »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

wintertime

  • Sr. Member
  • ****
  • Posts: 255
    • View Profile
Re: .. Stack around the variable 'window' was corrupted ..
« Reply #6 on: November 21, 2013, 12:12:27 pm »
Thats a bit sad you gave up, if its just an incompatibility with the library version you could have tried compiling SFML yourself, there is the tutorial URL: http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php

 

anything