Debug Build Hang with vs.net 2002 and C# Application.Exit();

B

BM

I was just wondering if this was a 'Known problem' or a chance problem
with my development system(s). (Ive had this happen on 2 different ones
now and now on a fresh install).

Im using vs.net 2002 IDE for developing .net windows applications since
it came out. I have not upgraded to the 2003.

Frequently, when developing a C# windows application when I try to run
the application in Debug mode it will simply hang and no main or top
window will show up. I will have to stop and restart the Debug or
rebuild multiple times before it will show the main window in Debug
mode. This does not happen if in Release mode.

Also, if it hangs I can hit the 'restart' debug feature and force it to
restart where it hangs at the main "Application.Run(new Form1());"?

Interestingly, I have been using a Application.Exit(); command in some
of my forms. I just today removed this and this Debug hanging problem
has stopped.?????

Any comments or experiences?

Thanks.
Bill
 
F

Felix Wang

Hi Bill,

Thanks for posting. Do you have any third party protection software running?

Based on my past experience, many deubg hang scenarios are caused by
anti-virus or script-blocking applications. I would suggest that we perform
a clean boot following the article below:

How to Perform a Clean Boot in Windows XP
http://support.microsoft.com/?id=310353

Note that we must have the "Machine Debug Manager" service enabled in the
step 3. Do we still have the problem under clean boot?

I hope the information is useful to you.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

Hi BM,

Does Felix's reply make sense to you?

If you still have any concern, please feel free to feedback, I will help
you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top