Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QScriptEngine instantiation closes application.
Forum Updated to NodeBB v4.3 + New Features

[Solved] QScriptEngine instantiation closes application.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qnoobish
    wrote on last edited by
    #1

    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:

    QtCored4.lib
    QtGuid4.lib
    QtDeclaratived4.lib
    QtScript4.lib

    Any comment will be appreciated.
    Thanks in advance

    In short, software is eating the world.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qnoobish
      wrote on last edited by
      #2

      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.

      In short, software is eating the world.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved