Results 1 to 2 of 2

Thread: QString convert crash problem

  1. #1

    Default QString convert crash problem

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QString convert crash problem

    Maybe "this" is not a valid object at the point of accessing m_processname?

    Hard to tell without any code.

    Cheers,
    _

Similar Threads

  1. Replies: 6
    Last Post: 30th September 2015, 21:20
  2. convert Qstring into int
    By sabbu in forum Newbie
    Replies: 8
    Last Post: 8th June 2011, 17:31
  3. Replies: 4
    Last Post: 24th July 2009, 09:48
  4. convert QString to int
    By mattia in forum Newbie
    Replies: 2
    Last Post: 4th January 2008, 10:10
  5. How to convert Int to QString in QT4?
    By drake1983 in forum Newbie
    Replies: 2
    Last Post: 11th March 2007, 07:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.