I've found something interesting.
The following code crashes: (the same ntdll.dll access violation errors)
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow renderWindow( sf::VideoMode( 800, 600 ), "sfml test", sf::Style::Titlebar | sf::Style::Close );
renderWindow.clear( sf::Color( 255, 255, 255, 255 ) );
renderWindow.display();
sf::Texture texture;
texture.loadFromFile( "btn_sel.png" );
sf::Sprite sprite;
sprite.setTexture( texture );
renderWindow.clear( sf::Color( 255, 255, 255, 255 ) );
renderWindow.display();
renderWindow.close();
return 0;
}
while the following code doesn't:
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow renderWindow( sf::VideoMode( 800, 600 ), "sfml test", sf::Style::Titlebar | sf::Style::Close );
renderWindow.clear( sf::Color( 255, 255, 255, 255 ) );
renderWindow.display();
sf::Texture texture;
texture.loadFromFile( "btn_sel.png" );
sf::Sprite sprite;
sprite.setTexture( texture );
renderWindow.clear( sf::Color( 255, 255, 255, 255 ) );
renderWindow.draw( sprite );
renderWindow.display();
renderWindow.close();
return 0;
}
The only difference is one `renderWindow.draw( sprite );` call.
(the same occurs if I replace the texture.loadFromFile function with texture.create( 100, 100 ); )
I don't know if this helps track down something.