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. Debug Dll working in release mode but crashing the program in debug mode .
Forum Updated to NodeBB v4.3 + New Features

Debug Dll working in release mode but crashing the program in debug mode .

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.7k 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.
  • musimbateM Offline
    musimbateM Offline
    musimbate
    wrote on last edited by
    #1

    Hi ,
    I was creating a Dll with Qt using Qt Creator .The dll is building fine and I am able to collect the generated dll and lib files :they are called NodeDll.dll and NodeDll.lib .

    I am then creating an application to test the libraries .In the .pro file ,I am making qmake aware of the location of the .lib file and copying the .dll file in the location of the generated .exe file of my application .This is the general flow I usually follow to use my libraries .My libraries are being built in debug mode .The problem I am facing is that when I try to run the application it just crashes .When I change to release mode( I am linking to the debug version of my dll) It works as expected .I need it to work in debug mode so others can hunt for problems easily .

    Has anyone faced these issues?Any ideas how I can get this working as expected?

    EDIT: I also built the library as static and it is still crashing the application .I looked again into what should be done when building and using libraries with Qt here http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application .May this be the problem with Qt Creator?

    My set up is Qt 5 with OpenGL
    Windows8
    VS2012

    Thank you for your time .

    Dan.

    Why join the navy if you can be a pirate?-Steve Jobs

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      It's a bit vague, what crash are you experiencing ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kenchan
        wrote on last edited by
        #3

        First thing to check for is mixed runtime library modes between your modules. Multi-threaded, Multi-threaded dll etc.

        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