i still think it is a QT problem - only now i can be more specific. ;-)
The fact i have a crash just means something interenally is not stable inside the QString object.
here is my test program:
CString test2 = test.toStdString().c_str();
QString param = "1";
QString test = QString("Test %1").arg(param);
CString test2 = test.toStdString().c_str();
To copy to clipboard, switch view to plain text mode
everything works ok.
QString param
= "111111111111111111111111";
CString test2 = test.toStdString().c_str();
QString param = "111111111111111111111111";
QString test = QString("Test %1").arg(param);
CString test2 = test.toStdString().c_str();
To copy to clipboard, switch view to plain text mode
third line fails because of the size of the arg.
Can you reproduce it?
(My environment is - Windows + MFC + ATL)
Anyone familiar with it?
hed
Bookmarks