Hi! I have some really annoying problem I cannot figure out how to mend.
When I compile & run the application I get this error:
"Unhandled exception at 0x5105551E (sfml-graphics-d-2.dll) in codeCounter.exe: 0xC0000005: Access violation reading location 0x00000004."
Here is my class:
class Draw
{
public:
Draw(sf::RenderWindow* rw);
~Draw();
void drawBox(int comments, int rows, int chars, int blanks, int tabs);
private:
sf::RenderWindow* m_Window;
sf::RectangleShape m_Box;
sf::Font m_Font;
sf::Text m_Text;
};
void Draw::drawBox(int comments, int rows, int chars, int blanks, int tabs)
{
m_Text.setPosition(200, 200);
m_Text.setCharacterSize(15);
m_Text.setColor(sf::Color::Black);
m_Window->draw(m_Text); // if I remove this, the application work, but I wouldn't have no text!
//....
}
If I have a break-point on the m_Text it say "No information available, no symbols from sfml-graphics-d-2.dll loaded".
Anyone that know how I can mend this annoying problem? ^^