My application compiles properly, but when it starts and initiates the window, i get a error:
A buffer overrun has occurred in Isometric.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'.
Which points to these lines in gs_report.c:
#if defined (_CRTBLD) && !defined (_SYSCRT)
DebuggerWasPresent = IsDebuggerPresent();
_CRT_DEBUGGER_HOOK(_CRT_DEBUGGER_GSFAILURE); <- This
#endif /* defined (_CRTBLD) && !defined (_SYSCRT) */
And here's my code:
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>
int main() {
sf::RenderWindow App(sf::VideoMode(800,600,32),"Test");
while(App.IsOpened())
{
sf::Event Event;
while(App.GetEvent(Event))
{
if(Event.Type == sf::Event::Closed) {
App.Close();
}
}
App.Clear();
App.Display();
}
return 0;
}
Here are my linked libraries:
sfml-main.lib
sfml-graphics.lib
sfml-window.lib
sfml-system.lib
sfml-network.lib
I have all of them (.dlls) in my release folder and so on.
Here are the logs.
Debug logs:
'Isometric.exe': Loaded 'C:\Documents and Settings\Ewa\Pulpit\Projekty_C++\Isometric\Release\Isometric.exe', Symbols loaded.
'Isometric.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\Documents and Settings\Ewa\Pulpit\Projekty_C++\Isometric\Release\sfml-graphics.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\glu32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\Documents and Settings\Ewa\Pulpit\Projekty_C++\Isometric\Release\sfml-window.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\Documents and Settings\Ewa\Pulpit\Projekty_C++\Isometric\Release\sfml-system.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4974_x-ww_d889290f\msvcp90.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4974_x-ww_d889290f\msvcr90.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\msvcp100.dll', Symbols loaded.
'Isometric.exe': Loaded 'C:\WINDOWS\system32\msvcr100.dll', Symbols loaded.
'Isometric.exe': Loaded 'C:\WINDOWS\system32\msctf.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\atioglxx.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\atiadlxx.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca\msvcr80.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\mcd32.dll', Cannot find or open the PDB file
'Isometric.exe': Unloaded 'C:\WINDOWS\system32\mcd32.dll'
'Isometric.exe': Loaded 'C:\WINDOWS\system32\dinput.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\hid.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', Cannot find or open the PDB file
'Isometric.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', Cannot find or open the PDB file
First-chance exception at 0x6f007200 in Isometric.exe: 0xC0000005: Access violation reading location 0x6f007200.
A buffer overrun has occurred in Isometric.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'.
The program '[5720] Isometric.exe: Native' has exited with code 0 (0x0).
Build logs:
1>------ Build started: Project: Isometric, Configuration: Release Win32 ------
1> main.cpp
1> Generating code
1> Finished generating code
1> Isometric.vcxproj -> C:\Documents and Settings\Ewa\Pulpit\Projekty_C++\Isometric\Release\Isometric.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
That's it from my output. I don't think i am mixing builds... Aha, also i have SFML_DYNAMIC defined in preprocessor.