Results 1 to 20 of 39

Thread: 64-bit Qt for windows: QtScript crashes.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    36
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    5

    Default Re: 64-bit Qt for windows: QtScript crashes.

    Ah, no
    It seems your test code missed
    Qt Code:
    1. QScriptValue oFnStart = m_oEngine.evaluate( "OnStart" );
    2. oFnStart.call();
    To copy to clipboard, switch view to plain text mode 

    After this is added, code start crashing again in same place .

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

    Default Re: 64-bit Qt for windows: QtScript crashes.

    There is no "oFnStart" object in our test program. Could you add it there and post the code again? Please include the code of the evaluated script and the result of QScriptValue::isFunction().

    By the way, to correct what has been said earlier:

    Qt Code:
    1. class Object : public QObject {
    2. public:
    3. // ...
    4. private:
    5. QScriptEngine engine;
    6. };
    To copy to clipboard, switch view to plain text mode 
    Running
    Qt Code:
    1. Object *o = new Object;
    2. o->moveToThread(...);
    To copy to clipboard, switch view to plain text mode 
    will not move the "engine" object to the target thread. "engine" is a member and not a child of the "o" object.
    Last edited by wysota; 19th January 2010 at 13:48.
    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.


Similar Threads

  1. Replies: 0
    Last Post: 25th November 2009, 08:46
  2. QTScript - getting the name of a QScriptValue
    By android_ in forum Qt Programming
    Replies: 7
    Last Post: 28th October 2009, 15:24
  3. Please help with QtScript
    By Haccel in forum Qt Programming
    Replies: 0
    Last Post: 16th December 2008, 06:59
  4. QtScript
    By QTInfinity in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2008, 21:10

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.