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 - TrapAlice

Pages: [1]
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..

2
Graphics / Access violation with sf::Text in SFML2.0
« on: February 02, 2012, 11:45:02 am »
Tried changing it from Release to Debug, still has the same problem.

3
Graphics / Access violation with sf::Text in SFML2.0
« on: February 01, 2012, 10:19:55 pm »
What I have in CMake is:

4
Graphics / Access violation with sf::Text in SFML2.0
« on: January 31, 2012, 09:01:58 pm »
Callstack
Quote
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++


Running on Windows 7 with a Nvidia graphics card, using the latest revision off github.

5
Graphics / Access violation with sf::Text in SFML2.0
« on: January 31, 2012, 08:11:24 pm »
I keep getting the error 0xC0000005: Access violation reading location 0xcccccccc.
Minimal example:
Code: [Select]
#include <SFML/Graphics.hpp>

int main(){
  sf::Font font;
  font.LoadFromFile("lucon.ttf");
  sf::Text text("Test", font, 30);
}

Pages: [1]