Hello. I'm new to SFML. I'm trying to use Window to create a simple window as a test. Here's my code:
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <iostream>
int main(int argc, char** argv)
{
sf::Window App(sf::VideoMode(800, 600, 32), "test");
return 0;
}
It compiles just fine, I've linked the -d lib files (it's compiling in Debug Win32 mode), and I even got it to work earlier (a window would appear for a second but then it would crash). I do NOT have any dll files in any of the project folders (not sure where they should go, anyway - the instructions in the tutorial are ambiguous as there are many sets of Release and Debug folders in the project folder). Also, earlier, when the window popped up, there were no dlls in the project folder.
I get the following run-time error: Unhandled exception at 0x759a9f11 in sfml-test.exe: 0xC0000005: Access violation reading location 0xcccccc00. It points to line 7 (sf:: Window App...). I'd like some help. Thanks in advance.
P.S. I'm using VS 2010. I'm basically getting the same error this guy is:
http://www.sfml-dev.org/forum/viewtopic.php?t=3152&sid=46ad47e735ac133493ab73e5f4540f4bAlso, the clock program worked, and iirc, I compiled the source for VS 2010, so that shouldn't be a problem.
Could I be missing something from the SFML-1.6 or lib/vc2010 folder? I don't think I am... Do I have to put the dlls in the project folder?
EDIT: I put the DLLs in the project folder, and it's working with the Release version (I'll try the Debug version later). However, I'm now getting a buffer overrun error:
A buffer overrun has occurred in sfml-test.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'.