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

Author Topic: Buffer Overrun problem...  (Read 2318 times)

0 Members and 1 Guest are viewing this topic.

FreezingCool

  • Newbie
  • *
  • Posts: 2
    • View Profile
Buffer Overrun problem...
« on: June 30, 2011, 09:08:13 pm »
Hello,
I have just started with SMFL tutorials and I am having some problems.
I have copied the code from the tutorial and still the same error so the error is not in coding.
I am receiving this error: "Buffer Overrun problem..."
I have tried step by step and I found out that the problem occurs on this line:
        while (App.GetEvent(Event))
I have some image loading on the beginning of the main function and when I delete that one (and all the code that has something to do with image/sprites) then it passes this line without any problems. I have tried to google for the solution but none of those helps me.

Does anyone have experience with this kind of problem and could help me?
I have included sfml-graphics.lib, sfml-main.lib, sfml-window.lib, sfml-system.lib and also copied the .dll files into the project folder.

Regards

FreezingCool

  • Newbie
  • *
  • Posts: 2
    • View Profile
Buffer Overrun problem...
« Reply #1 on: July 02, 2011, 09:57:03 pm »
Any help?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Buffer Overrun problem...
« Reply #2 on: July 02, 2011, 10:09:56 pm »
Which SFML version? In case you recompiled it, which configuration (debug/release, link SFML statically/dynamically, link standard libraries statically/dynamically) did you choose? Are you sure you link everything correctly?

And please show a minimal complete code example where the error appears.

You can also try SFML 2, if you haven't already done this.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Haikarainen

  • Guest
Buffer Overrun problem...
« Reply #3 on: July 05, 2011, 12:38:51 pm »
Try this code:
Code: [Select]

#include <SFML/Graphics.hpp>

int main(){
sf::RenderWindow* a;
return 0;
}



If you are using SFML2 ,then App.GetEvent() has been replaced by App.PollEvent();[/code]

 

anything