Thanks Tian for the response. I will try your suggestions.
To answer your question about breakpoints and where and when this
problem occurs, it appears to be random. For instance, last week I had
set a breakpoint in my native C++ DLL. VS broke at a function and then
when I tried to step into the function, VS froze up and it took a
while to kill VS. I moved the breakpoint down past the function, and
it was better, although very slow. I notice when stepping through my
native code the debugger reacts very slowly, but when I am stepping
through my managed code it appears to be more responsive.
-Drew
ti******@online.microsoft.com (Tian Min Huang) wrote in message news:<JA**************@cpmsftngxa06.phx.gbl>...
Hello Drew,
Thanks for your post. I'd like to share the following information with you:
1. Please make sure that Enable Unmanaged Debugging for your C# project is
set to TRUE. Please right-click the C# project in Solution Explorer, select
Properties, and this option is under Configuration Properties -> Debugging.
2. Does this problem occurs to a specific (sets of) breakpoints in native
code or occurs to all breakpoints? As far as I know, we made some
improvements in interop-debugging in Visual Studio .NET 2003. However, this
issue is not totally resolved and it is being investigated.
To work around this problem, I suggest that you can debug the unmanaged DLL
seperately by the following steps:
a. Set the unmanaged DLL as Startup project in the solution.
b. Open the Property Page for the unmanaged DLL project.
c. Go to Configuration Properties -> Debugging, input the executable file
of C# in the Command edit box.
d. Press F5 will start the C# application which loads the unmanaged DLL,
and you can set breakpoints and debug it.
Please feel free to let me know if you have any problems or concern. I look
forward to hearing from you.
Have a nice day!
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.