I am trying to get SFML working, but I can only get the white ball to appear (from the SFML website) in release mode in Visual Studio 2022. In debug mode I get stopped with the error
Exception thrown at 0x00007FFBB6E228E0 (msvcp140d.dll) in SFML For Real For Real.exe: 0xc0000005: Расположение чтения на нарушение доступа 0x0000000000000000. Проверка файлов находится в правильных местах и все такое. Я не могу заставить его работать. < /P>
#include
int main()
{
sf::RenderWindow window(sf::VideoMode({ 200, 200 }), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::White);
while (window.isOpen())
{
while (const std::optional event = window.pollEvent())
{
if (event->is())
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... debug-mode