1
Graphics / Access violation with sf::Text in SFML2.0
« on: February 02, 2012, 02:01:51 pm »
It was a complete screw up I've made, I was including the release libs but using the debug dlls..
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.
sfml-system-d-2.dll!std::_Char_traits<unsigned int,long>::assign(unsigned int & _Left, const unsigned int & _Right) Line 215 + 0x6 bytes C++
sfml-system-d-2.dll!std::_Char_traits<unsigned int,long>::copy(unsigned int * _First1, const unsigned int * _First2, unsigned int _Count) Line 167 + 0xd bytes C++
sfml-system-d-2.dll!std::basic_string<unsigned int,std::char_traits<unsigned int>,std::allocator<unsigned int> >::assign(const std::basic_string<unsigned int,std::char_traits<unsigned int>,std::allocator<unsigned int> > & _Right, unsigned int _Roff, unsigned int _Count) Line 903 + 0x21 bytes C++
sfml-system-d-2.dll!std::basic_string<unsigned int,std::char_traits<unsigned int>,std::allocator<unsigned int> >::basic_string<unsigned int,std::char_traits<unsigned int>,std::allocator<unsigned int> >(const std::basic_string<unsigned int,std::char_traits<unsigned int>,std::allocator<unsigned int> > & _Right) Line 546 C++
sfml-system-d-2.dll!sf::String::String(const sf::String & copy) Line 132 C++
sfml-graphics-d-2.dll!sf::Text::Text(const sf::String & string, const sf::Font & font, unsigned int characterSize) Line 59 + 0x74 bytes C++
MoonEnginev2.exe!moon::Draw::DrawText(moon::Window * pTarget, std::basic_string<char,std::char_traits<char>,std::allocator<char> > pText, int pX, int pY, moon::Colour pCol) Line 33 + 0x61 bytes C++
#include <SFML/Graphics.hpp>
int main(){
sf::Font font;
font.LoadFromFile("lucon.ttf");
sf::Text text("Test", font, 30);
}