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

Author Topic: Access violation  (Read 705 times)

0 Members and 1 Guest are viewing this topic.

Manniac

  • Newbie
  • *
  • Posts: 1
    • View Profile
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
« Last Edit: September 10, 2015, 04:14:39 am by Manniac »