Article ID: 317297 - Last Review: June 1, 2007 - Revision: 7.8 Roadmap for debugging hangs, memory leaks, deadlocks, and race conditions in Visual Basic .NET and in Visual Basic 2005This article was previously published under Q317297 On This PageSUMMARY
This article provides a roadmap to learn and master "Debugging Hangs, Memory Leaks, Deadlocks, and Race Conditions." 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.
OverviewsThe following links provide overview information about Debugging Hangs, Memory Leaks, Dead Locks and Race Conditions:Debugging Articles
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vstchdebugging.asp)
The .NET SDK Debugger (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptutorials/html/the_net_sdk_debugger.asp) Visual Basic .NET: Tracing, Logging, and Threading Made Easy with .NET (http://msdn.microsoft.com/en-us/magazine/cc302019.aspx) Debugging User Interface Reference (http://msdn.microsoft.com/en-us/library/cwzf7x3e.aspx) Debugging in Visual Studio 2005 (http://msdn2.microsoft.com/en-us/library/sc65sadd(en-US,VS.80).aspx) ArchitectureThe following links provide architectural (internal) information about Debugging:CLR Debugger
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netstart/html/vcorithecom20sdkdebugger.asp)
Runtime Debugger (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfruntimedebuggercordbgexe.asp) Trace Class (http://msdn2.microsoft.com/en-us/library/system.diagnostics.trace(vs.71).aspx) Debug Class (http://msdn2.microsoft.com/en-us/library/system.diagnostics.debug(vs.71).aspx) Key Concepts and QuickstartsThe following links take you to documentation about key Debugging concepts and Quickstart tutorials:Debugging with the .NET Framework SDK Tutorial
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptutorials/html/introduction_to_debugging.asp)
How To ArticlesHow 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
(http://support.microsoft.com/default.aspx?scid=kb;en-us;q313417)
Q306978 - HOW TO: Use QueryPerformanceCounter to Time Code in Visual Basic .NET
(http://support.microsoft.com/default.aspx?scid=kb;en-us;q306978)
For additional information about how to set breakpoints, click the article number below to view the article in the Microsoft Knowledge Base: 308469
(http://support.microsoft.com/kb/308469/EN-US/
)
HOW TO: Set Conditional Breakpoints in Visual Studio .NET
WalkthroughsWalkthroughs provide minitutorials that walk you through some typical application development scenarios that use Debugging. The following links will take you to walkthrough documents:How Do I... Work with tracing?
(http://samples.gotdotnet.com/quickstart/howto/doc/Trace.aspx)
How Do I...Instrument a small application with tracing? (http://samples.gotdotnet.com/quickstart/howto/doc/TraceDemo.aspx) TroubleshootingIf 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
(http://msdn.microsoft.com/newsgroups/)
Microsoft Knowledge Base (http://support.microsoft.com/search/?adv=1) REFERENCESThreadingQ316422 - INFO: Roadmap for Threading in VB.NET
(http://support.microsoft.com/default.aspx?scid=kb;en-us;q316422)
- 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 ManagementAutomatic Memory Management
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconautomaticmemorymanagement.asp)
Programming for Garbage Collection (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconprogrammingessentialsforgarbagecollection.asp) Garbage Collection Technology Sample (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpsamples/html/garbage_collection_technology_sample.asp) Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework (http://msdn.microsoft.com/en-us/magazine/bb985010.aspx) Garbage Collection-Part 2: Automatic Memory Management in the Microsoft .NET Framework (http://msdn2.microsoft.com/en-us/library/aa772170.aspx) Implementing Finalize and Dispose to Clean Up Unmanaged Resources (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconfinalizedispose.asp) | Article Translations
|
Back to the top
