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

Author Topic: **** Buffer overrun? ****  (Read 2677 times)

0 Members and 1 Guest are viewing this topic.

Dark Byte

  • Newbie
  • *
  • Posts: 30
    • View Profile
**** Buffer overrun? ****
« on: September 25, 2010, 09:51:24 pm »
I am new to SFML and I am having trouble with the Window package. I am using VC++ 2010 with SFML 1.6. I can not make the program run in Release mode because it returns this error
A buffer overrun has occurred in SFMLTest02.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.

It will not run in debug either I get this error
1>------ Build started: Project: SFMLTest02, Configuration: Debug Win32 ------
1>  
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\SFMLTest02.exe.embed.manifest". The parameter is incorrect.
1>  
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

SFML is installled to C:\SFML-1.6

And my VC++ properties are
Include Dirs = C:\SFML-1.6\include;$(IncludePath)
Library dirs = C:\SFML-1.6\lib;$(LibraryPath)

Preprocesser =SFML_DYNAMIC;WIN32;_DEBUG;_CONSOLE

Extern Dependencies = sfml-window-d.lib;$(AdditionalDependecies)

The source
Code: [Select]

#include <SFML/Window.hpp>
#include <iostream>

int main()
{
sf::Window App(sf::VideoMode(800,600,32), "Test App");
while ( App.IsOpened() )
{
sf::Event Event;
while ( App.GetEvent(Event) )
{
if ( Event.Type == sf::Event::Closed )
{
App.Close();
}
}

App.Display();
}
return 0;
}
[/code]

Edit:
Also when I use the debug libraries (-d) I get this error when the app starts
http://img215.imageshack.us/img215/2116/capturezk.png

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
**** Buffer overrun? ****
« Reply #1 on: October 03, 2010, 11:00:37 am »
Did you recompile SFML with VC++ 2010?
Laurent Gomila - SFML developer