Results 1 to 3 of 3

Thread: QList Exception/Crash After Only Change of Compiler

  1. #1
    Join Date
    Dec 2009
    Posts
    15
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default QList Exception/Crash After Only Change of Compiler

    Hi all,

    I've firstly compiled our project with MinGW (Qt version 4.8.0). There has been no problem. Then I've configured Qt Creator to be used MSVC compiler (Qt version 4.8.2). Now the project runs successfully but the following exception has been thrown in qlist.h when I clicked a button that creates a list.

    "The inferior stopped because it triggered an exception."

    But this exception has not been thrown with the project compiled by MinGW. Is it a known problem of Qt Creator? How can this exception create when I only change the compiler?

    Thanks a lot for your helps and explanations,
    Yasemin

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QList Exception/Crash After Only Change of Compiler

    Qt Creator is a text editor. It doesn't cause exceptions in your programs. The code of your program, on the other hand, does cause that.
    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.


  3. #3
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QList Exception/Crash After Only Change of Compiler

    If you build Qt libs with mingw, you cannot make the rest of your app with a microsoft compiler...
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. QList: unexplicable crash
    By pucara_faa in forum Qt Programming
    Replies: 4
    Last Post: 25th July 2010, 15:09
  2. Exception (crash) when accessing QImage pixel
    By TheJim01 in forum Newbie
    Replies: 2
    Last Post: 19th February 2010, 21:53
  3. Replies: 8
    Last Post: 28th December 2009, 11:32
  4. crash at QList<MyControls *> handling
    By navid in forum Newbie
    Replies: 4
    Last Post: 4th November 2009, 15:40
  5. QList crash in destructor
    By mclark in forum Newbie
    Replies: 7
    Last Post: 6th December 2006, 15:27

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.