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.


Topics - Manniac

Pages: [1]
1
Window / Access violation
« on: September 10, 2015, 03:58:14 am »
Hey,

I've 'installed' SFML and tried to create a window with this code:
#include <SFML/Graphics.hpp>


int main()
{
        sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

        while(window.isOpen())
        {
                sf::Event Event;
                while(window.pollEvent(Event))
                {
                        if(Event.type == sf::Event::Closed)
                                window.close();
                }
        }
}
This error shows up after compiling:
Unbehandelte Ausnahme bei 0x0fa259da (msvcr100d.dll) in SFML_game.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0xccccccc0.
The line the debugger shows up is:
_ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
( file: dbgdel.cpp )

Where's the problem?

Greetz

/solved in the IRC. had 2 use sfml-xxx-d.lib

Pages: [1]
anything