SFML community forums
Help => Window => Topic started by: Juanxo on May 06, 2010, 02:18:51 am
-
Hi all:
I'm doing some tests with SFML, and i have an error:
Unhandled exception at 0x7549f7cc in Mesh_Transformd.exe: 0xC0000005: Access violation reading location 0xcccc004f.
the app is this:
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
int main(int argc, char** argv)
{
sf::Window window(sf::VideoMode(800,600), "HELLO");
return 0;
}
It happens only in the debug build.
PS: Im using SFML 1.6 and VS 2010 Pro
-
You must link to the debug libraries ("-d" suffix) when compiling in debug mode.
-
Sorry, i forgot to tell it.
This is my input in the linker box:
$(ExtLibs)Lib\SFML\SFML-main-d.lib
$(ExtLibs)Lib\SFML\SFML-window-d.lib
$(ExtLibs)Lib\SFML\SFML-system-d.lib
$(ExtLibs)Lib\SFML\SFML-graphics-d.lib
OpenGL32.lib
GLu32.lib
$(ExtLibs)Lib\Assimp\debug\assimp.lib
And the app is Multi-threaded DLL debug
-
Did you recompile SFML with VS 2010 ?
-
i have tried it, but i get some errors about _ITERATOR_DEBUG_LEVEL or something similar
-
i have tried it, but i get some errors about _ITERATOR_DEBUG_LEVEL or something similar
Which doesn't mean that this is the wrong solution ;)
Tell us more about this error, so that we can help you fix it.
-
I have the same problem, only I have recompiled with 2010.
-
when i tried to rebuild all libs with batch build, i get this error in some of them:
sfml-window-s-d.lib(Context.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in Color.obj
sfml-system-s-d.lib(Thread.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in AudioDevice.obj
Which doesn't mean that this is the wrong solution
sorry, i didn't want to say that
-
has anyone got the libs compilled for vs 2010?