Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6231399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:55:41+00:00 2026-05-24T09:55:41+00:00

I have the following three projects in my solution: 1. C# library 2. C++/CLI

  • 0

I have the following three projects in my solution:
1. C# library
2. C++/CLI managed code
3. C++ unmanaged code

I did check “Enable Unmanaged Code Debugging” in my C# project, and built both C++ projects in Debug/Win32. However, I cannot step into unmanaged code – when I F11 on the call of any unmanaged method, it shows me some random/wrong code then exits.

Because my unit tests pass, I know that my unmanaged code does execute.

What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:55:42+00:00Added an answer on May 24, 2026 at 9:55 am

    When I’ve had this problem it has come from one of these things:

    1) Enable unmanaged code debugging not checked. You already fixed this.

    2) Built the EXE as x64 or Any CPU (they say x64 works, but it doesn’t). I think you already fixed this.

    3) “Just my code” being turned on sometimes causes trouble with unmanaged code debugging (Tools, Options, Debugger, Just My Code)

    4) Incorrect debug options in the C++ project settings

    5) Missing, corrupted or mismatched PDB files. You can check for this by trying to set a breakpoint in your C++ code while running in the debugger. If the breakpoint turns into a hollow circle, something is wrong with your debug info. Also check your output window as you run in debug mode — it should tell you whose symbols got loaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MVC solution setup like this, with three 'projects'. Web (MVC Project,
I have a solution that has three projects: WPF Application Class Library NUnit Testing
In my project I have the following three interfaces, which are implemented by classes
I have the following code string three() { return three; } void mutate(string& ref)
I have three images and using the following code I have then fade in
We have a VS 2010 solution that includes a few class library projects, a
I have a Visual Studio 2008 solution that's currently consisting of three projects: A
Following the walkthrough at http://msdn.microsoft.com/en-us/library/ee707351(v=VS.91).aspx I have a working Silverlight solution that employs a
i have written these following three functions for my project to work: WORD shuffling(WORD
I have a solution file that has the following example projects: SharedLibrary NonSharedLibrary WebProject

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.