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. How to question about stepping into a dll

How to question about stepping into a dll

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiotutorialquestion
5 Posts 4 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.
  • N Offline
    N Offline
    ns
    wrote on last edited by
    #1

    Windows Xp,Visual studio 6 service pack 3, Win32 c++dll Have a C++ driver and it calls the dll in a loop. The code executes once and crashes before it gets around to the top of the loop. So...I would like to know how to step into the code of the dll. I have the code in a different project. One time i accidentally did this so i know it can be done BUT i don't recall how. Googling is not very enlightening atm :^)

    L A 2 Replies Last reply
    0
    • N ns

      Windows Xp,Visual studio 6 service pack 3, Win32 c++dll Have a C++ driver and it calls the dll in a loop. The code executes once and crashes before it gets around to the top of the loop. So...I would like to know how to step into the code of the dll. I have the code in a different project. One time i accidentally did this so i know it can be done BUT i don't recall how. Googling is not very enlightening atm :^)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If it's your DLL then just create a debug version, link to it and run your program through the debugger. Set a breakpoint at some appropriate location in order to step into the DLL.

      Just say 'NO' to evaluated arguments for diadic functions! Ash

      B 1 Reply Last reply
      0
      • L Lost User

        If it's your DLL then just create a debug version, link to it and run your program through the debugger. Set a breakpoint at some appropriate location in order to step into the DLL.

        Just say 'NO' to evaluated arguments for diadic functions! Ash

        B Offline
        B Offline
        Blake Miller
        wrote on last edited by
        #3

        AND if the DLL is dynamically, laoded, go to the part of the development environment that lets you set up DLL to be loaded early, otherwise your breakpoint will start off disabled. Worst case, temporarily hard code a DebugBreak in the loop and when that is hit, the system will drop you into the debugger.

        L 1 Reply Last reply
        0
        • N ns

          Windows Xp,Visual studio 6 service pack 3, Win32 c++dll Have a C++ driver and it calls the dll in a loop. The code executes once and crashes before it gets around to the top of the loop. So...I would like to know how to step into the code of the dll. I have the code in a different project. One time i accidentally did this so i know it can be done BUT i don't recall how. Googling is not very enlightening atm :^)

          A Offline
          A Offline
          Alan Balkany
          wrote on last edited by
          #4

          If your calling program is managed code and the DLL is unmanaged, you need to go to the project properties, Debug tab, and click the "Enable unmanaged code debugging" check box.

          1 Reply Last reply
          0
          • B Blake Miller

            AND if the DLL is dynamically, laoded, go to the part of the development environment that lets you set up DLL to be loaded early, otherwise your breakpoint will start off disabled. Worst case, temporarily hard code a DebugBreak in the loop and when that is hit, the system will drop you into the debugger.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Very interesting, but I think you should direct your comments to the OP.

            Just say 'NO' to evaluated arguments for diadic functions! Ash

            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