473,508 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging a Mixed Mode dll

Hello, I have a mixed mode DLL that I am trying to debug that's acting really
weird, Basiclly I expose a bunch of functions through virtual functions and
other code loads it that way.

What's really weird is in my CPP file I have breakpoints set where it jumps
into one or two functions perfectly just like you would expect it to. But
then I have other functions in the exact same cpp file that when it gets to
that breakpoint I end up in the wscoworks.dll with assembly only. I can move
back the call stack and see my code/assembly but I need to be able to look at
varibles and such.

Is there anything I can do to make this work? I really need to be able to
get into that fuction, It's really weird that it works fine with some
functions in the same cpp file but not others. I tired to see if I was doing
something differntly between the functions that work and the functions that
don't but I don't see one.

Any suggestions would be super helpful.
Nov 17 '05 #1
1 1352
Are you mixing managed and unmanaged code in the same file (#pragma
managed/unmanaged)?
Make sure you are using both debuggers (Debugger Type=mixed, do not use
Auto)!

Regards,
Ståle

"Kluch" <Kl***@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hello, I have a mixed mode DLL that I am trying to debug that's acting
really
weird, Basiclly I expose a bunch of functions through virtual functions
and
other code loads it that way.

What's really weird is in my CPP file I have breakpoints set where it
jumps
into one or two functions perfectly just like you would expect it to. But
then I have other functions in the exact same cpp file that when it gets
to
that breakpoint I end up in the wscoworks.dll with assembly only. I can
move
back the call stack and see my code/assembly but I need to be able to look
at
varibles and such.

Is there anything I can do to make this work? I really need to be able to
get into that fuction, It's really weird that it works fine with some
functions in the same cpp file but not others. I tired to see if I was
doing
something differntly between the functions that work and the functions
that
don't but I don't see one.

Any suggestions would be super helpful.

Nov 17 '05 #2

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

Similar topics

5
2925
by: Adam McKee | last post by:
We are using Visual Studio.NET 2003 in our project with .NET framework 1.1. One of our libraries is a mixed-mode dll assembly consisting of one managed C++ library, and several unmanaged C++...
9
2569
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
8
3485
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
3
2111
by: Max Christian | last post by:
I'm writing a mixed-mode C++ DLL which is used by an old C++ application that I don't have the source code to. I'm amazed by the ease of interoperability, but the one problem I'm having is...
4
2215
by: Lonewolf | last post by:
hi, I'm still in the process of transiting from MFC/VC6 to vs2005, and a lot of things are very alien to me. So hope you could bear with me if my question sounds stupid. Basically I have native...
8
2299
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
11
1582
by: Lee Crabtree | last post by:
I've got a solution that has a C++ project that compiles to a DLL, and a C# project that is the main piece of the program. The DLL is managed C++ on top of regular C++. In one of the native...
0
1093
by: Brian | last post by:
Hi. I need to place wrappers around a set of legacy VC++ 6 dlls and call them via Asp.Net. This works but I can't step into them. Every time I do, they step over, which is a bit of a nightmare. ...
6
1967
by: PeteOlcott | last post by:
When I set a break point in a file that has both managed C++ and unmanaged C++ the debugger never sees the breakpoints in the managed code. What can be done to get the debugger to "see" the...
0
7124
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
7326
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
7046
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
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5629
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
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.