1
Window / Re: RenderWindow::getSize() access violation
« on: July 29, 2014, 04:49:31 pm »
Sorry, that problem was sorted, missed the option the first time around. The libraries Im using are building and running fine with the std libs linked statically, its now this error with RenderWindows. Iv made a skeleton project and the code runs fine, and even though theres more to the other project in which it doesnt run, all Iv done is include extra libs. Have you seen anything like this before?
Code: [Select]
//works
sf::RenderWindow w;
w.create(sf::VideoMode(800,600,32), "Test", sf::Style::Default);
w.getSize().x;
//doesnt work
sf::RenderWindow* w=new sf::RenderWindow();
w->create(sf::VideoMode(800,600,32), "Test", sf::Style::Default);
w->getSize().x;