Microsoft KB Archive/317297

= Roadmap for debugging hangs, memory leaks, deadlocks, and race conditions in Visual Basic .NET and in Visual Basic 2005 =

Article ID: 317297

Article Last Modified on 6/1/2007

-

APPLIES TO


 * Microsoft Visual Basic 2005
 * Microsoft Visual Basic .NET 2003 Standard Edition
 * Microsoft Visual Basic .NET 2002 Standard Edition

-



This article was previously published under Q317297



SUMMARY
This article provides a roadmap to learn and master &quot;Debugging Hangs, Memory Leaks, Deadlocks, and Race Conditions.&quot; To assist you as you learn a Microsoft product or technology, roadmap articles provide links to useful information, including online documentation, Microsoft Knowledge Base (KB) articles and white papers.

Overviews
The following links provide overview information about Debugging Hangs, Memory Leaks, Dead Locks and Race Conditions:

Debugging Articles

The .NET SDK Debugger

Visual Basic .NET: Tracing, Logging, and Threading Made Easy with .NET

Debugging User Interface Reference

Debugging in Visual Studio 2005

Architecture
The following links provide architectural (internal) information about Debugging:

CLR Debugger

Runtime Debugger

Trace Class

Debug Class

Key Concepts and Quickstarts
The following links take you to documentation about key Debugging concepts and Quickstart tutorials:

Debugging with the .NET Framework SDK Tutorial

How To Articles
How To articles provide step-by-step instructions for accomplishing specific tasks. Run the following Microsoft Knowledge Base query to return How To articles about Debug:

Q313417 - HOW TO: Trace and Debug in Visual Basic .NET

Q306978 - HOW TO: Use QueryPerformanceCounter to Time Code in Visual Basic .NET

For additional information about how to set breakpoints, click the article number below to view the article in the Microsoft Knowledge Base:

308469 HOW TO: Set Conditional Breakpoints in Visual Studio .NET

Walkthroughs
Walkthroughs provide minitutorials that walk you through some typical application development scenarios that use Debugging. The following links will take you to walkthrough documents:

[http://samples.gotdotnet.com/quickstart/howto/doc/Trace.aspx How Do I... Work with tracing?]

How Do I...Instrument a small application with tracing?

Troubleshooting
If you run into problems along the way and you need some answers to your questions, refer to the Microsoft Newsgroups, where you can share your experiences with your peers, or to the Microsoft Knowledge Base (KB), where you can search for KB articles about specific issues. These resources are available at the following links:

MSDN Newsgroups

Microsoft Knowledge Base



Threading
Q316422 - INFO: Roadmap for Threading in VB.NET - This article links to all the basics of threading. This will help you to understand better how threading works so that you will be able to understand the problems that can be encountered since threads cause race conditions and deadlocks.

Memory Management
Automatic Memory Management

Programming for Garbage Collection

Garbage Collection Technology Sample

Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework

Garbage Collection-Part 2: Automatic Memory Management in the Microsoft .NET Framework

Implementing Finalize and Dispose to Clean Up Unmanaged Resources

Keywords: kbvs2005applies kbvs2005swept kbhowto kbarttyperoadmap kbinfo KB317297

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.