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:
Where's the problem?
Greetz
/solved in the IRC. had 2 use sfml-xxx-d.lib
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: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();
}
}
}
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