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. Visual Studio
  4. Debugging native code called from managed code

Debugging native code called from managed code

Scheduled Pinned Locked Moved Visual Studio
debuggingcsharpc++visual-studioquestion
4 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    This only works if I run the program outside the debugger, let it crash, then "manually select debuggers". If I do anything else, visual studio (2010 Pro, by the way) pretends that the call site of the native function is somehow at fault, unless the "exception" was a debug break, then it just closes the program being debugged. It's a little annoying to always have to let the program crash and then "manually select debuggers", is there anything I can do about that?

    Richard Andrew x64R 1 Reply Last reply
    0
    • L Lost User

      This only works if I run the program outside the debugger, let it crash, then "manually select debuggers". If I do anything else, visual studio (2010 Pro, by the way) pretends that the call site of the native function is somehow at fault, unless the "exception" was a debug break, then it just closes the program being debugged. It's a little annoying to always have to let the program crash and then "manually select debuggers", is there anything I can do about that?

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      harold aptroot wrote:

      is there anything I can do about that?

      Curse Microsoft?

      The difficult we do right away... ...the impossible takes slightly longer.

      L 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        harold aptroot wrote:

        is there anything I can do about that?

        Curse Microsoft?

        The difficult we do right away... ...the impossible takes slightly longer.

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

        I've tried that, it didn't help much..

        J 1 Reply Last reply
        0
        • L Lost User

          I've tried that, it didn't help much..

          J Offline
          J Offline
          JohnPayton
          wrote on last edited by
          #4

          I find invoking a "Chook" curse aimed at Microsoft works. How do I know this? I rang them one day and asked if they had and Chooks. They replied "No", so it must work!!

          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