Warum schließt sich mein Programm? (C++, SFML)
-
Hallo das Fenster was ich geschrieben habe schließt sich nach ein paar sekunden
Es ist mit C++ und SFML geschrieben.#include <SFML/Graphics.hpp> int main(){ sf::RenderWindow window(sf::VideoMode(200, 200), "Title"); while (window.isOpen()) { } return 0; }Die Ausgabe:
The Thread 0x3308 has ended with the code -1073740777 (0xc0000417).
The Thread 0x36bc has ended with the code -1073740777 (0xc0000417).
The Thread 0x39e4 has ended with the code -1073740777 (0xc0000417).
The Thread 0x32c0 has ended with the code -1073740777 (0xc0000417).
The Thread 0x4ed8 has ended with the code -1073740777 (0xc0000417).
The Thread 0x1408 has ended with the code -1073740777 (0xc0000417).
The Thread 0x2988 has ended with the code -1073740777 (0xc0000417).
The Thread 0x1fb8 has ended with the code -1073740777 (0xc0000417).
The Thread 0x4708 has ended with the code -1073740777 (0xc0000417).
The Thread 0x3808 has ended with the code -1073740777 (0xc0000417).
The Thread 0x21f0 has ended with the code -1073740777 (0xc0000417).
The Thread 0x2620 has ended with the code -1073740777 (0xc0000417).
The Thread 0x135c has ended with the code -1073740777 (0xc0000417).
The Thread 0xca4 has ended with the code -1073740777 (0xc0000417).
The Thread 0x300c has ended with the code -1073740777 (0xc0000417).
The Thread 0x405c has ended with the code -1073740777 (0xc0000417).
The Thread 0xc84 has ended with the code -1073740777 (0xc0000417).
The program "[19804] GameDevelopment.exe" was closed with the code -1073741510 (0xc000013a).Was eventuell noch wichtig ist:
So geht es aber damit kann man ja keine Sprites usw drawen:#include <SFML/Graphics.hpp> int main(){ sf::Window window(sf::VideoMode(200, 200), "Title"); while (window.isOpen()) { } return 0; }Ich brauche dringend hilfe ich weiß nämlich nicht womit ich sonst Spiele coden soll als mit SFML was bei mir ja nicht richtig Funktioniert. Ich habe schon auf mehreren anderen Seiten gefragt die mir nicht helfen konnten.
-
Schon mal probiert, eine event loop einzubauen?