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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - trevorade

Pages: [1]
1
Window / Re: Yet another buffer overrun...
« on: August 31, 2013, 09:54:52 pm »
It's come up a lot, that's why I called it infamous.
http://google.com/#q=site:en.sfml-dev.org%2Fforums+buffer+overrun

Basically, you build the sample program, it runs with the green circle and SFML Works! window title, and then crashes with a buffer overrun whenever you try to close the window or resize it.

The problem appears to occur when you have a mismatch between: debug/release, static/dynamic, or between different VS compiler versions.

Based on the info I posted, I'm pretty sure that I'm using the correct lib and dll files.  There's something else causing the issue.

2
Window / Yet another buffer overrun...
« on: August 31, 2013, 08:40:20 am »
Hey all, I'm just starting to use SFML with VS++11 (2012) and have run into the infamous windows buffer overrun bug.  I'm actually using Eclipse CDT but am using the Visual C++ toolchain.

This is the version I'm using of SFML:
SFML-2.1-windows-vc11-32bits

This the version of cl I'm using:
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.51106.1 for x86

I have copied the following DLL's to my exe's dir:
libsndfile-1.dll
openal32.dll
sfml-audio-d-2.dll
sfml-graphics-d-2.dll
sfml-network-d-2.dll
sfml-system-d-2.dll
sfml-window-d-2.dll


Here are the commands I'm using to build it:
cl /c /EHs /MD /Zi /DSFML_DYNAMIC "/IE:\\DevTools\\SFML-2.1-windows-vc11-32bits\\include" /nologo "/Fosrc\\Hello.obj" "..\\src\\Hello.cpp"
link /debug /nologo "/libpath:E:\\DevTools\\SFML-2.1-windows-vc11-32bits\\include" /OUT:Hello.exe "src\\Hello.obj" "E:\\DevTools\\SFML-2.1-windows-vc11-32bits\\lib\\sfml-audio-d.lib" "E:\\DevTools\\SFML-2.1-windows-vc11-32bits\\lib\\sfml-graphics-d.lib" "E:\\DevTools\\SFML-2.1-windows-vc11-32bits\\lib\\sfml-main-d.lib" "E:\\DevTools\\SFML-2.1-windows-vc11-32bits\\lib\\sfml-network-d.lib" "E:\\DevTools\\SFML-2.1-windows-vc11-32bits\\lib\\sfml-system-d.lib" "E:\\DevTools\\SFML-2.1-windows-vc11-32bits\\lib\\sfml-window-d.lib"


My guess is there's some flag in here different from what the lib files were built with for debug which is causing issues due to CDT default flags for cl and link differing.

I followed the tutorial here http://www.sfml-dev.org/tutorials/2.1/start-vc.php and am running the exact sample program listed at the bottom.

I'd rather not recompile SFML if possible (I've seen that listed as the solution to this problem a few times).

Thanks in advance!

Pages: [1]