SFML community forums

Help => Graphics => Topic started by: Zarickan on July 16, 2016, 08:03:27 pm

Title: SFML.Net AccessViolationException when using Text.GetLocalBounds()
Post by: Zarickan on July 16, 2016, 08:03:27 pm
As the title says, I sometimes (not consistently) get a AccessViolationException when attempting to use .GetGlobalBounds() on an SFML text object from within my drawing loop.

I do not know how to reproduce this, and it happens randomly when I start my program. I have tried limiting my application to only using one thread for both drawing and updating as opposed to two or three threads but it did not help. Initializing the font object from a byte array before using it in the constructor of a text object reduced the issue, but did not resolve it, please help!

(http://thepiratebays.dk/img/sfml_text_global.png)

Stacktrace:
(click to show/hide)