I've developed an application using Qt, VS2013 and Boost. It runs fine in Debug mode. But fails to run in Release mode. Here's a piece of code that runs fine while debugging but throws an exception in release mode:
std::string str = ui.labels->toPlainText().toStdString();
This call on the other hand works fine:
QString str = ui.labels->toPlainText();
Is there anything wrong with those lines of code? Other boost calls work fine. Thanks.
You're probably trying to do too many things at once, and that makes it hard to pinpoint where it fails. Try it step-by-step: