Results 1 to 9 of 9

Thread: Release ok, debug crashes [compilable code]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Release ok, debug crashes [compilable code]

    Quote Originally Posted by Raccoon29 View Post
    Yes, but why it works -somehow- in release and crash in debug? An exception is an exception, isn't it?
    It works because the debug version probably zeroes the stack memory it frees while release mode doesn't. So in the release mode the object is still there although formally it has been deallocated. In debug you either dereference a null object or the stack location is being overwritten by another data.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Raccoon29 (10th December 2009)

Similar Threads

  1. Replies: 3
    Last Post: 3rd December 2009, 16:12
  2. Replies: 1
    Last Post: 18th November 2009, 21:51
  3. Replies: 5
    Last Post: 5th October 2008, 05:12
  4. Need debug and release versions of Qwt?
    By Tiansen in forum Qwt
    Replies: 1
    Last Post: 28th March 2008, 07:55
  5. Replies: 6
    Last Post: 10th November 2006, 10:38

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.