I\'m learning to use SFML with the idea of making a small game, so far I\'ve created a window and messed about with it\'s settings, and set up a draw loop and event handler.
You're using SFML libraries which were compiled with a different runtime or a different runtime ABI than you link your application against.
If your SFML libraries weren't compiled with the same compiler that you have, then you need to rebuild.
If you have set any special flags on your application (e.g. different ABI, C++14, etc.) you'll have to rebuild SFML with the same flags as well or remove them from your project.
Also it only happens sometimes because it doesn't affect the whole runtime libraries but parts like std::string
which get used when calling the loadFromFile
function.