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 720585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:46:31+00:00 2026-05-14T05:46:31+00:00

I have a C# Service that is calling a C DLL that was originally

  • 0

I have a C# Service that is calling a C DLL that was originally written in VC6.

There is a bug in the DLL which I am trying to inspect.

After having a nightmare trying to get debug to work I eventually added the dll to the VS2005 solution containing the C# Service and added the necessary _CRT_SECURE_NO_WARNINGS.

The debug version of the service is registered using ‘installutil.exe’ tool.

I can get the debugger to break just before the line where the dll is entered via a call to System.Diagnostics.Debugger.Break();.

I found some instruction on the net regarding stepping into debugging unmanaged code, and enabled the ‘Enable unmanaged code debugging’ check box, I’ve also tried turning on the Options->Debugging->Native ‘Load DLL exports’ and ‘Enable RPC Debugging’ (even though it’s not COM). I’ve also copied the debug dll and .pdb to the same bin directory as the service.

However the unmanaged code is not being stepped into which is what I really need.

UPDATE: I found the Debugging Type in the DLL properties and set it to ‘Mixed’ as per suggestion on several sites but to no avail.

UPDATE2: My project now emits the debug dll and the pdb to the same directory as the debug service. Still unable to debug the dll.

  • 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-14T05:46:31+00:00Added an answer on May 14, 2026 at 5:46 am

    In the end I created a console app and recreated all the prior calls just to make sure the call would act as it did in the actual service with the actual parameters once it got there.

    I chronicled my fix and the resultant code at my site.

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

Sidebar

Related Questions

I have a WCF service that I am calling from multiple clients. I need
I have a service that uses duplex requests for calling back to the client
I have a web-service application that exposes lot of web-methods ( internally calling internal
I have an API (a DLL) which has various methods that return objects /
I have a .NET windows service that is calling cdb.exe to analyze crash dumps.
In c# 4.0, I have a web service called ManufacturerContactDetails. I am calling that
I have a web service that I am calling and their published WSDL doesn't
I have a service which has a method that downloads an image from an
I have a service that opens multiple watchers to watch multiple folders. After watching
I have a C# .Net Web Service. I am calling a dll (C# .Net)

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.