PDA

View Full Version : QString convert crash problem



cankann
23rd July 2019, 14:59
Hello,
I trying convert my string to std string but i getting crash.
http://prntscr.com/oixydg

And TestQmlCpp line 117
std::string cString = m_processname.toStdString(); ( Crashing here )

I trying to do this convert in function and i this function in thread ( CreateThread )
How can i fix this problem?

anda_skoa
25th July 2019, 08:49
Maybe "this" is not a valid object at the point of accessing m_processname?

Hard to tell without any code.

Cheers,
_