[Solved] QScriptEngine instantiation closes application.

  • Hello Qt community,

    I am having an unexpected issue, when I try to create a QScriptEngine instance, like this:

     QScriptEngine engine;

    As soon as the above line runs in my code my application exits without not much information.

    I am using VS2005, and I have as input, under Linker project configuration properties, the following libraries in my project:


    Any comment will be appreciated.
    Thanks in advance

  • I found the problem.

    I was adding QtScript4.lib and this was causing the crash.

    The correct library, seems to be QtScriptd4.lib, after I made this change my application now runs.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.