Results 1 to 9 of 9

Thread: How to run a debug app linked against a release binary

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    36
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default How to run a debug app linked against a release binary

    Hi ,

    I have created a library in release mode and I want to be able to use it in an app that is built in debug mode. Every time I run the app it crashes.

    Is it possible to achieve that??
    If Yes, Could you please suggest me how could I implement that ???

    Any help would be highly appreciated.

    Regards,
    Raj

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to run a debug app linked against a release binary

    u can use the library with your debug app. What is the crash?

  3. #3
    Join Date
    Aug 2010
    Posts
    36
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to run a debug app linked against a release binary

    I dont see any specific error message.
    If I run it from Qt Creator ... it just crashes with error: exited with code 1.
    If I double click the app ... it just doesnt do anything ... I can see in the Task Manager that it tries to start but then just goes away without any message ... Actual app never shows up here in this case.

  4. #4
    Join Date
    Aug 2010
    Posts
    36
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to run a debug app linked against a release binary

    Is there anything specific that I need to do at Library's code or configuration ????

  5. #5
    Join Date
    Feb 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to run a debug app linked against a release binary

    Raj, these silent crashes usually happen when some dynamic library is missing or cannot be found by the app. If you're working with Windows, check your app with Dependency Walker. You can also open the Event Viewer to check for errors. Usually "side by side" errors will create one or more error registers there.

Similar Threads

  1. Qt Creator How to set .pro file about debug and release
    By yycking in forum Qt Tools
    Replies: 2
    Last Post: 28th February 2011, 18:28
  2. Debug or Release mode in MAC
    By ssaa in forum Installation and Deployment
    Replies: 6
    Last Post: 9th March 2010, 05:15
  3. Replies: 0
    Last Post: 22nd May 2009, 09:55
  4. Why not on release but debug
    By baray98 in forum Qt Programming
    Replies: 6
    Last Post: 10th August 2007, 09:08
  5. Debug and Release
    By paranoid_android in forum Qt Programming
    Replies: 5
    Last Post: 18th November 2006, 13:58

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