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 -
No, it is not a known issue with Creator. The fact of the matter is, that there are differences between the compiler. Most often, it happens that code is wrong but still works on one compiler (perhaps with some set of flags only), but will not work on another compiler or with another set of flags.
However, assume that the root issue in your own code. Qt itself has been quite well tested with both compilers.