Hi there,
my code:
textFps->setString("FPS: "); <- has an exception: std::bad_alloc
but,
textFps->setString(L"FPS: ");
-> OK
-------------------------------------------------
extend:
std::stringstream ss;
ss << getFps(elapsedTime);
textFps->setString("FPS: " + ss.str());
-> has an exception: std::length_error
help me
![Sad :(](https://www.sfml-dev.org/forums/Smileys/default/sad.gif)
Thanks!!!