c++ - Conversion from Qstring to std::string throws an exception -


surprisingly below code throwing exception.

qstring qtemp = qdir::temppath();  std::string temp = qtemp.tostdstring();   std::cout<<temp<<std::endl; 

when debugged using visual studio - go value variable qtemp . in next step bad pointer debugger results in exception when cout same.

this known symptom if you're mixing debug , release dlls.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -