I am trying to convert a QString to a std:tring using VS 2005 and Qt 4.3.0. There is a function in QString::toStdString( ) that returns a std:
tring and I have used this many times when I used VS 2003 and Qt 4.3.0 but I was recently forced to upgrade to VS 2005. Now I have been crashing in a function and I have narrowed it down to this call. I have commented out everything but this one line for code that looks like:
std::string sname = selected.toStdString( );
Whenever I try to leave this function that only has one line of executed code (the rest is commented out for debugging purposes) I get a Debug Assertion Failed! error. And inside my function call stack I can see it is dying in dbgheap.c at Line 1963 in _CrtIsValidHeapPointer. Does this mean anything to anyone and if so, can you please help me figure out how to get around this bug. Thanks!