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
Thanks!!!