473,434 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Debugging C callable dlls from C#

I have a C# application that loads a C callable dll via DllImport. The
function gets called fine, but I can not debug it (Step into it). When the
dll loads, the symbols are not found, and also the break point has the "?"
all the time.

What is going wrong here? I have tried everything I can think of.

I am currently using Visual Studio .NET 2003.

Thanks,
Scott.

Nov 17 '05 #1
2 1720
Do you have 'Enable Unmanaged Debugging' set in your project properties? I
can only make this work with a debug build of the dll where the functions are
declared as extern "C". I haven't tried attachng a remote debugger, that
would probably work, you can set the path to the symbols and source code.

"skohnle" wrote:
I have a C# application that loads a C callable dll via DllImport. The
function gets called fine, but I can not debug it (Step into it). When the
dll loads, the symbols are not found, and also the break point has the "?"
all the time.

What is going wrong here? I have tried everything I can think of.

I am currently using Visual Studio .NET 2003.

Thanks,
Scott.

Nov 17 '05 #2
Hi John,

Thank you for the help. I can not tell you how many times I looked at this
property and did not see this option. I enabled it and now debugging my dll.

Thanks,
Scott.

"John" wrote:
Do you have 'Enable Unmanaged Debugging' set in your project properties? I
can only make this work with a debug build of the dll where the functions are
declared as extern "C". I haven't tried attachng a remote debugger, that
would probably work, you can set the path to the symbols and source code.

"skohnle" wrote:
I have a C# application that loads a C callable dll via DllImport. The
function gets called fine, but I can not debug it (Step into it). When the
dll loads, the symbols are not found, and also the break point has the "?"
all the time.

What is going wrong here? I have tried everything I can think of.

I am currently using Visual Studio .NET 2003.

Thanks,
Scott.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Humpty Dumpty | last post by:
Hello, I've been using python for about 3 months now. Prior to that I did C++ for over 5 years. I'm wondering if my debugging techniques are too C++ oriented. E.g., it took me about 9 hrs of...
3
by: INGSOC | last post by:
I spent a few hours today setting up remote debugging in VS.2003 I had to disable the firewall, subvert the security scheme and let anonymous users have full access to my COM+ objects on my...
0
by: Saira | last post by:
Hi all I have had an add-in that has references to several assemblies running smoothly for some time. recently i have lost the ability to debug it. When the solution starts, the symbols do not...
2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
3
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing....
6
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing....
20
by: krypto.wizard | last post by:
Is there any editor or IDE in Python (either Windows or Linux) which has very good debugging facilites like MS VisualStudio has or something like that. I like SPE but couldn't easily use winPDP....
0
by: Niklas Norrthon | last post by:
On 24 Juli, 00:30, Samir <spytho...@gmail.comwrote: 'int' object is not callable... hmmm... Traceback (most recent call last):
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.