Difference between revisions of ".NET & Memory Leaks"
From Richard's Wiki
Line 2: | Line 2: | ||
* [http://www.codeproject.com/KB/dotnet/idisposable.aspx IDisposable: What Your Mother Never Told You About Resource Deallocation] | * [http://www.codeproject.com/KB/dotnet/idisposable.aspx IDisposable: What Your Mother Never Told You About Resource Deallocation] | ||
* [http://www.codeproject.com/KB/dotnet/Memory_Leak_Detection.aspx Memory Leak Detection in .NET] uses WinDbg. | * [http://www.codeproject.com/KB/dotnet/Memory_Leak_Detection.aspx Memory Leak Detection in .NET] uses WinDbg. | ||
− | * Download windbg from [http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx Install Debugging Tools for Windows 32-bit Version]. The following batch file will run windbg with the VS2008 environment set so that ".load sos.dll" can be run from the prompt in windbg. Install the batch file in the Debugging Tools install directory (C:\Program Files\Debugging Tools for Windows). | + | * Download windbg from [http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx Install Debugging Tools for Windows 32-bit Version]. The following batch file will run windbg with the VS2008 environment set so that ".load sos.dll" can be run from the prompt in windbg. Install the batch file in the Debugging Tools install directory (C:\Program Files\Debugging Tools for Windows (x86)). |
echo off | echo off |
Latest revision as of 22:06, 9 December 2008
- Perfmon & .NET
- IDisposable: What Your Mother Never Told You About Resource Deallocation
- Memory Leak Detection in .NET uses WinDbg.
- Download windbg from Install Debugging Tools for Windows 32-bit Version. The following batch file will run windbg with the VS2008 environment set so that ".load sos.dll" can be run from the prompt in windbg. Install the batch file in the Debugging Tools install directory (C:\Program Files\Debugging Tools for Windows (x86)).
echo off REM Runs windbg with VS2008 environment set so that ".load sos.dll" can be run simply call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" start windbg.exe REM set /p a=Press Enter