SFML community forums

Help => General => Topic started by: sewe2000 on February 07, 2021, 05:58:22 pm

Title: [SOLVED]"SFML works" example throws an exception.
Post by: sewe2000 on February 07, 2021, 05:58:22 pm
Hello!
When I try to run example code from https://www.sfml-dev.org/tutorials/2.5/start-vc.php (https://www.sfml-dev.org/tutorials/2.5/start-vc.php) in Visual Studio 2019, the exception is thrown in line
Quote
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
. Then the console appears with the following message:
Quote
(process 11072) exited with code -1073741819.
and I don't know what to do. Visual Studio says the following exception message:
Quote
Unhandled exception at 0x0000000000000000 in SFML.exe: 0xC0000005: Access violation executing location
I built SFML with Cmake on my own. I use Windows. Thanks for all support.