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#
  4. Debug into unmanage code??

Debug into unmanage code??

Scheduled Pinned Locked Moved C#
csharpc++visual-studiodebuggingquestion
3 Posts 2 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.
  • S Offline
    S Offline
    Small Rat
    wrote on last edited by
    #1

    Hi, I have a project mixed with C++ and C# in VS 2003. I tried to debug into the C++ code. but it never stop at any break point. I use CoCreateInstance to create the C++ object (C# call a c++ library #1 -- managed C++, lib #1 call CoCreateInstance to create the final object). I want to step into the function call to that object. I have the source code for all the C# and C++ projects. I set the "Enable unmanaged debugging" to true and also "allow unsafe code blocks" to true already. but it I can debug into library 1 only!! does any one has some idea about this!!! Thanks a lot in advance!

    Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!

    L 1 Reply Last reply
    0
    • S Small Rat

      Hi, I have a project mixed with C++ and C# in VS 2003. I tried to debug into the C++ code. but it never stop at any break point. I use CoCreateInstance to create the C++ object (C# call a c++ library #1 -- managed C++, lib #1 call CoCreateInstance to create the final object). I want to step into the function call to that object. I have the source code for all the C# and C++ projects. I set the "Enable unmanaged debugging" to true and also "allow unsafe code blocks" to true already. but it I can debug into library 1 only!! does any one has some idea about this!!! Thanks a lot in advance!

      Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Small Rat wrote:

      I have the source code for all the C# and C++ projects.

      You have them all included and compiled in the Solution you are debugging from?

      led mike

      S 1 Reply Last reply
      0
      • L led mike

        Small Rat wrote:

        I have the source code for all the C# and C++ projects.

        You have them all included and compiled in the Solution you are debugging from?

        led mike

        S Offline
        S Offline
        Small Rat
        wrote on last edited by
        #3

        yes, all the projects are in the same solution. and I can compile it and run it. all the existing functions work fine. I want to add some new funcitons, so I need to debug into it!

        Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!

        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