Results 1 to 6 of 6

Thread: runJavaScript() crashes my program.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: runJavaScript() crashes my program.

    Also, since the method needs a callback instead of having a return value, it might call the lambda asychronously.
    So your return value might sometimes or always be an empty string right now.

    Cheers,
    _

  2. #2
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: runJavaScript() crashes my program.

    I've noticed that and I've been wondering what courses it. Is there a better solution then? One that is not going to return an empty string.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: runJavaScript() crashes my program.

    Well, theoretically a nested event loop.

    But better would of course be to not force a synchronous behavior onto an asynchronous operation.

    Cheers,
    _

Similar Threads

  1. Getting image directly with runJavaScript
    By Fred in forum Qt Programming
    Replies: 1
    Last Post: 13th November 2016, 15:37
  2. Using exceptions in Qt 5.1.1 crashes the program
    By themagician in forum Newbie
    Replies: 0
    Last Post: 24th November 2013, 18:34
  3. Program crashes on 64-bit systems
    By WereWind in forum Qt Programming
    Replies: 6
    Last Post: 5th February 2013, 10:29
  4. Program crashes
    By Fallen_ in forum Qt Programming
    Replies: 49
    Last Post: 20th September 2010, 01:41
  5. program crashes (QtTestRunner)
    By fmariusd in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2008, 09:27

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.