Hi everyone,
I'm trying to follow the starter tutorial and load the globalFont but the application crashes everytime.
This is my code:
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:
I have no idea what to do. Can anyone help me please?
Thanks in advance
I'm trying to follow the starter tutorial and load the globalFont but the application crashes everytime.
This is my code:
Code Select
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:
Code Select
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