Results 1 to 11 of 11

Thread: QModelIndexList crashes application on destruct

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    54
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 10 Times in 5 Posts
    Wiki edits
    2

    Default Re: QModelIndexList crashes application on destruct

    Quote Originally Posted by euch View Post
    Hello;

    I have the same problem.

    How can I see that the release libs are linked to my application when I am in debug mode. I enter to the properties of the application and looked in the link page under input entry but I didn't notice anything wrong.
    In MSVS -> Project Properties - Configuration Properties -> Linker -> Input -> Additional Dependencies ->

    If you look at the added libraries: QtCored4.lib is the debug version QtCore4.lib is the release version.

    And of course with Dependency Walker you can see it.

  2. #2
    Join Date
    Feb 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QModelIndexList crashes application on destruct

    I looked at the Additional Dependencies and I notice that all my libs are debug libs (with d extension), but still my application is crashed if I use the line code
    QItemSelectionModel *pSlectionModel = pTableWidget->selectionModel();
    In release mode the application not crashing, so I used the _DEBUG macro to distinguish the two cases.

  3. #3
    Join Date
    May 2010
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QModelIndexList crashes application on destruct

    YOu can't mix debug and release library. They're not compatible. They each have their version of the runtime.

    In addition the vcproj file is very well done and if you want to switch from debug to release (and vice versa) just use the appropriate combobox on the toolbar and everything should be fine.

Similar Threads

  1. Application crashes when it has a particular name
    By hunsrus in forum Qt Programming
    Replies: 2
    Last Post: 27th January 2010, 21:50
  2. how to self-destruct a program
    By timmu in forum Qt Programming
    Replies: 3
    Last Post: 21st January 2010, 11:42
  3. Application crashes
    By waynew in forum Newbie
    Replies: 1
    Last Post: 2nd November 2009, 11:31
  4. My application crashes
    By sophister in forum Qt Programming
    Replies: 13
    Last Post: 27th April 2009, 08:39
  5. Hot to get a QModelIndexList from a model?
    By brazso in forum Newbie
    Replies: 1
    Last Post: 16th January 2009, 13:10

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.