SFML community forums
Help => Graphics => Topic started by: wormpattern on October 21, 2012, 07:58:22 pm
-
Hello,
I am getting memory access error while trying to run code (SFML 2.0):
sf::Font font;
font.loadFromFile("arial.ttf");
Unhandled exception at 0x6d5a1f16 in test.exe: 0xC0000005: Access violation reading location 0x003b2000.
from debugger:
+ font {m_library=0xbaadf00d m_face=0xbaadf00d m_streamRec=0xbaadf00d ...} sf::Font
font file is present and accessible.
Any idea on it?
-
Which compiler?
If VC++11 (Visual Studio2012), have you recompiled SFML?
-
Hello, its VS 2010 express. I didnt recompile it actualy, just took as it is.
-
Are you sure that you're not mixing static/dynamic, or debug/release? Can you show a complete and minimal code that reproduces the problem?
-
Hello,
You are absolutly right I didnt used static libs. My fault and thanks for help.
-
"Not using the static libs" is not a mistake ???