Results 1 to 4 of 4

Thread: How to resolve QLibrary issue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to resolve QLibrary issue

    Hi,

    I have a dll that can't re-enter, that is, it is not thread safe. But I need to call it repeatedly and it takes a lot of CPU time. So I am trying to use QtConcurrent and QLibrary.

    However, QLibrary opens same dll and shares among themself. How can I make them not share?

    The attached code gives same "addTo" and "getResult", and final results are wrong.

    addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
    addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
    addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
    addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
    addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654

    Any solution?

    Thanks!
    Attached Files Attached Files

Similar Threads

  1. How to resolve this error in Windows 8?
    By Gokulnathvc in forum Newbie
    Replies: 3
    Last Post: 28th February 2013, 06:32
  2. QLibrary::resolve() crash on return
    By gib in forum Qt Programming
    Replies: 3
    Last Post: 29th March 2010, 09:06
  3. QLibrary resolve problem
    By Nippler in forum Qt Programming
    Replies: 0
    Last Post: 4th December 2008, 15:37
  4. Unable to resolve the IP address. ( Qt 3.)
    By joseph in forum Qt Programming
    Replies: 18
    Last Post: 5th July 2007, 12:02
  5. Can somebody resolve this issue???
    By im_rajya in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2006, 10:37

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.