Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ichnichtibo

Pages: [1]
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();
};
 

Pages: [1]
anything