Menu

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.

Show posts Menu

Topics - frostraver

#1
Help requests / Problem loading font
04 January 2014, 20:35:13
Hi everyone,

I'm trying to follow the starter tutorial and load the globalFont but the application crashes everytime.
This is my code:

sf::Font font;
font.loadFromFile("TGUI/fonts/DejaVuSans.ttf");
m_MainWindow.globalFont = font;


I included everything all right I think because without using the font everything works that I'm trying to do. (Creating a textbox works and creating a background picture as well).

This is the error I'm getting:

Unhandled exception at 0x000007FEE870364F (sfml-graphics-2.dll) in SFMLclient.exe: 0xC0000005: Access violation reading location 0x0000000000000019.

I have no idea what to do. Can anyone help me please?

Thanks in advance