1
Window / ACCESS VİOLATİON ERROR?
« on: August 11, 2023, 01:50:07 pm »#pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#include <SFML/System.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Window.hpp>
/*
Class that acts as the game engine
Wrapper Class
*/
class Game
{
private:
//Variables
//Window
sf::RenderWindow* window;
sf::VideoMode videoMode;
sf::Event ev;
//Private functions
void initializeVariable();
void initWindow();
public:
// Constructor and Deconstructor
Game();
virtual ~Game();
// Accesors
const bool isRunnig() const
{
return this->window->isOpen(); [b]in here it says "Uncaught exception occurred on SFML.exe at address 0x5539836A (sfml-window-d-2.dll): 0xC0000005: Read access violation to location 0x0000000C." i cant get it[/b]
};
// Functions
void handleEvents();
void update();
void render();
};
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#include <SFML/System.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Window.hpp>
/*
Class that acts as the game engine
Wrapper Class
*/
class Game
{
private:
//Variables
//Window
sf::RenderWindow* window;
sf::VideoMode videoMode;
sf::Event ev;
//Private functions
void initializeVariable();
void initWindow();
public:
// Constructor and Deconstructor
Game();
virtual ~Game();
// Accesors
const bool isRunnig() const
{
return this->window->isOpen(); [b]in here it says "Uncaught exception occurred on SFML.exe at address 0x5539836A (sfml-window-d-2.dll): 0xC0000005: Read access violation to location 0x0000000C." i cant get it[/b]
};
// Functions
void handleEvents();
void update();
void render();
};