0 Members and 2 Guests are viewing this topic.
Unhandled Exception: System.AccessViolationExeption: Attempt to read or write protected memory. This is often an indication that other memory is corrupt.at sf.RenderTarget.Clear(RenderTarget* , Color* )at main()at _mainCRTStartup()
#include <SFML/Graphics.hpp>int main(){ sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Heavy"); sf::Image Image; if (!Image.LoadFromFile("heavy.tga")) return EXIT_FAILURE; sf::Sprite Sprite(Image); Sprite.SetPosition(200.f, 100.f); while (App.IsOpened()) { sf::Event Event; while (App.GetEvent(Event)) { if (Event.Type == sf::Event::Closed) App.Close(); } App.Clear(); App.Draw(Sprite); App.Display(); } return EXIT_SUCCESS;}
Microsoft's visual c++ compiler
Which version?