Unsolved Qt Inferior stopped because it triggered an exception
-
This post is deleted! -
@magicstar What is config?
Do you have stack trace? -
@jsulm
Thanks for the reply.
config is std::string variable. The value of it exactly same in VS and QT.
May I please know what is stack trace? I am new to QT. -
@magicstar Start you app with debugger in QtCreator (F5) and when it crashes you should have a stack trace
-
Here is the stack trace.
-
@magicstar this is not stack trace
see http://doc.qt.io/qtcreator/creator-debug-mode.html -
As the stack trace suggests, problem is indeed at
ImToolkit *toolkit = factory->CreateInstance(config);
-
@magicstar Why is there DeleteInstance just after CreateInstance?
-
@jsulm
There am just creating instance and actual deletion is happening at end of the code. Removing that line does not solve the issue.I just realised, code is building and executing correctly in release mode. But, I still don't understand why is it not working in debug mode.