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

Author Topic: Buffer overrun  (Read 1135 times)

0 Members and 1 Guest are viewing this topic.

da_coolest

  • Newbie
  • *
  • Posts: 19
    • View Profile
Buffer overrun
« on: May 28, 2012, 08:20:07 pm »
Hi, I was trying to compile the code provided with the SFML tutorials and I get a buffer overrun error during the compilation.

following is the output :

Quote
'GraphicTest.exe': Loaded 'C:\Users\admin\Documents\Visual Studio 2008\Projects\GraphicTest\Debug\GraphicTest.exe', Symbols loaded.
'GraphicTest.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\opengl32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\sechost.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\user32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\lpk.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\usp10.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\glu32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\ddraw.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\dciman32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\setupapi.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\ole32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\devobj.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\winmm.dll'
'GraphicTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll', Symbols loaded.
'GraphicTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.
'GraphicTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\msvcr90.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\imm32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\msctf.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\prl_gldd.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\version.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\cryptbase.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\dinput.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\hid.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\wintrust.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\crypt32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\msasn1.dll'
First-chance exception at 0x0100a800 in GraphicTest.exe: 0xC0000005: Access violation.
A buffer overrun has occurred in GraphicTest.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 '[3236] GraphicTest.exe: Native' has exited with code 0 (0x0).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Buffer overrun
« Reply #1 on: May 28, 2012, 08:51:41 pm »
Make sure that you link to the debug SFML libraries in debug mode.
Laurent Gomila - SFML developer