Hi.
I was making my SFML app, and everything was all right when i compiled it in release mode, but when I tried debug, an weird error occurred. It shows when app is already working and refers to xstring file:
Program: C:\Windows\system32\MSVCP110D.dll
File: D:\programmes\visual-studio-2012\VC\INCLUDE\xstring
Line: 250
Expression: string iterators incompatible
By debugging I found what triggers that error:
void ThreadedRenderWin::create_(sf::VideoMode mode_, const std::string& title_, unsigned long style_, const sf::ContextSettings& settings_)
{
eventThread.reset(new sf::Thread([&]()
{
sf::Lock createLock(createMutex);
sf::RenderWindow::create(mode_, title_, style_, settings_); //<-- This is the problematic function
setActive(false);
//Rest omitted
}));
eventThread->launch();
}
//////main.cpp
int main(){
NG::ThreadedRenderWin RenderWin;
RenderWin.create_(sf::VideoMode(800,680,32), "SFML");
//Event loop etc.
return 0;
}
Still, in release there is no problem.
I don't know what is exactly wrong, so I put it in "General" category.
Any ideas? I use VS2012.
Thanks for every response!