Results 1 to 5 of 5

Thread: Why does this crash (compilable code included)?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,316
    Thanks
    315
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Why does this crash (compilable code included)?

    but in initialization list, calling _bitmastFromInternal(mask) means calling copy constructor of QBitArray
    Wrong. All you are doing is storing a reference to the QBitArray, because your member variable (_bitmaskFromInternal) is also a reference. If you want to make a copy, declare _bitmaskFromInternal as a QBitArray, not a QBitArray &.

  2. The following user says thank you to d_stranz for this useful post:

    Krzysztow (6th December 2011)

Similar Threads

  1. Replies: 0
    Last Post: 2nd February 2010, 04:38
  2. Release ok, debug crashes [compilable code]
    By Raccoon29 in forum Qt Programming
    Replies: 8
    Last Post: 16th December 2009, 15:48
  3. QTest dir not included by qmake
    By allstar in forum Qt Programming
    Replies: 1
    Last Post: 20th June 2007, 11:10
  4. header files not getting included
    By nimmyj in forum Installation and Deployment
    Replies: 1
    Last Post: 19th December 2006, 06:18
  5. Displaying picture included with html code
    By Djony in forum Qt Tools
    Replies: 1
    Last Post: 27th November 2006, 16:15

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.