473,320 Members | 2,073 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,320 software developers and data experts.

Debugger hell (7-18-2002)

There is an old thread I found on google where the OP was exhibiting the
same problems I am seeing.

Reference "Debugger hell" posted 7-18-2002 by Sean Gies

I am running Visual Studio 2003 RTM. Has this problem been fixed? I have a
C# application that calls a managed C++ wrapper of a native C++ dll.
Everything works fine. However, I notice on occasional breakpoints in my
native code, everything freezes and it takes a while to bring up TaskManager
to kill devenv. This is _really_ frustrating me and I am starting to worry
that this is going to delay our release date.

Any information is helpful.

-Drew
Nov 16 '05 #1
1 1426
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.

Nov 16 '05 #2

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

Similar topics

1
by: Sam | last post by:
I'm writing an address processing app in C#, using an ActiveX component (Addr) written in VB6, for which I have the source code. The main function is FixAddress, which takes a string representing...
22
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on...
25
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low...
1
by: Rhino | last post by:
Is there any way to install the IBM Distributed Debugger V9.2 on Windows XP without first uninstalling DB2? I installed the IBM Distributed Debugger V9.2 on my Windows XP box in the hopes of...
1
by: GreatB | last post by:
Bill Gates died in a car accident. He found himself in Purgatory being sized up by God . .. "Well, Bill, I'm really confused on this call. I'm not sure whether to send you to Heaven or Hell....
9
by: RalphTheExpert | last post by:
I'm getting different behavior if my code is running under the debugger or not. I have modified Winmain to look like this: // Copyright (C) 2002 Microsoft Corporation // All rights reserved....
0
by: Clamps | last post by:
So I have an existing webform with about seven buttons. The buttons do a variety of tasks ranging from the simple response.redirect to a database connection & update. User requirements dictated...
3
by: Randy Magruder | last post by:
Attn: Asp.net gurus...if anyone can help, I hope it's here. Okay, I'm at my wits end. I have googled til my fingers hurt and am still not finding answers. The symptoms are as follows: 1. ...
3
by: Baron Samedi | last post by:
Sounds unbelievable, I know, but I joined a company whether they don't do any host testing, only target. No one test their code in an IDE on a PC - they just link it and try to test the whole thing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.