I have a problem, the following code is compiled and run, but an exception is immediately raised after launch.

#include <SFML/Graphics.hpp> using namespace sf; class A{ public: A() { rend(); } void rend() { RenderTexture r; //исключение возникает в этом месте } } A a = A(); 

Here is the exception itself:

Visual Studio Exception

I am using the SFML version 2.4.2 library.

    1 answer 1

    Updated SFML to version 2.5.0, no more exceptions