Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. debug dll not working

debug dll not working

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebuggingannouncement
6 Posts 6 Posters 0 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.
  • A Offline
    A Offline
    appollosputnik
    wrote on last edited by
    #1

    I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.

    C R A M S 5 Replies Last reply
    0
    • A appollosputnik

      I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      sujandasmahapatra wrote:

      when there is 'release' instead of debug it's working fine

      probably not. but debug assertions don't happen in release mode. they're there to tell programmers that something seriously wrong has happened. your best bet is to duplicate the problem in a debugger then see why that assertion is happening. then fix the problem.

      image processing toolkits | batch image processing

      1 Reply Last reply
      0
      • A appollosputnik

        I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        sujandasmahapatra wrote:

        file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp
        line: 451

        Debug your code (single step), go to that line number and see what's asserting. Read this excellent essay: Surviving the release build[^]

        "Real men drive manual transmission" - Rajesh.

        1 Reply Last reply
        0
        • A appollosputnik

          I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          "Break" execution when the assertion is hit, then look at what the assertion is telling you. You can see what has been asserted (example):

          //assert that a pointer is not NULL
          ASSERT( pWnd );
          //OR
          ASSERT( pWnd!=NULL );

          Then you can look at the call stack and trace back to your code (instead of looking at the mfc portion that triggered the assertion). You probably forgot to initialize something or did something incorrectly within the framework.

          1 Reply Last reply
          0
          • A appollosputnik

            I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.

            M Offline
            M Offline
            Malli_S
            wrote on last edited by
            #5

            file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 You can debug the code at specified location or post that code here. :)

            [Delegates]      [Virtual Desktop]      [Tray Me !]
            -Malli...! :rose:****

            1 Reply Last reply
            0
            • A appollosputnik

              I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.

              S Offline
              S Offline
              Stephen Hewitt
              wrote on last edited by
              #6

              The assertion is telling you the file name and the line number in the file. Have a look there and read the comment which no doubt accompanies the assertion.

              Steve

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups