Category Archives: Debugging

Start ProcMon During Boot on Machine You Can’t Logon

Sometimes you might want to run some tracing tools like ProcMon, xperf, wpr, netsh trace, etc on a machine that logon is not completing properly. Often you might be able to use PowerShell remoting, WMI, or psexec to get these … Continue reading

Posted in Debugging, ProcMon, Windows Performance Recorder, Windows Performance Toolkit | Tagged | Leave a comment

Misleading PowerShell Exceptions–Example #1

In PowerShell 5.0 on Windows 10 was looking at a script with function not working: The exception thrown by Powershell was: You cannot call a method on a null-valued expression.At C:\Users\chentiangemalc\Documents\Scripts\Test.ps1:5 char:9+     if ([System.String]::IsNullOrWhiteSpace($condition))+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : InvalidOperation: (:) … Continue reading

Posted in Debugging, PowerShell | Tagged | Leave a comment

Case of the Win10 Windows Performance Recorder Trace That Wouldn’t Stop

Disk space kept rapidly disappearing on my C: drive… Using WinDirStat (https://windirstat.info/) it was evident majority was taken up by 40GB+ ETL files in my TEMP folder. Running wpr –status showed no traces running Searching registry with RegScanner ( http://www.nirsoft.net/utils/regscanner.htmlContinue reading

Posted in Debugging, Windows 10, Windows Performance Recorder | Tagged | 1 Comment

Case of the .NET Memory Leak via Gfx Driver on Windows 8

A .NET 4 application used to index scanned documents started to fail on Windows 8 Typically the recommendation for Not enough storage is available to process this command might involve: reduce the number of running programs; remove unwanted files from … Continue reading

Posted in .NET, C#, Debugging, Windows 8 | Tagged | Leave a comment

Case of the Invoked Hang (.NET)

A .NET application was hanging completely when certain background tasks were occurring. Using ProcDump (http://live.sysinternals.com/Procdump.exe ) with option Procdump –ma <process name> i captured a 3 dump files about 10 seconds apart, to identify where hang was occurring. Opening dmp … Continue reading

Posted in .NET, Debugging, IL, WinDbg | Tagged | Leave a comment

Generate HTML/PDF Summary of App Crash/Hangs via PowerShell

This script can be pointed at a list of servers in a text file, and the Event logs are scanned for application hang/crash events. The Windows Application hang event only occurs when an app hangs and user terminates the program. … Continue reading

Posted in .NET, Debugging, PowerShell | Tagged | Leave a comment

Case of the .NET 4.5.2 Setup Can’t Run In Compatibility Mode

When downloading http://www.microsoft.com/en-us/download/confirmation.aspx?id=42643 on Windows 8.1, the installer failed Well the most obvious thing, is the installer for some reason is set into compatibility mode. Clicking EXE and looking at properties shows this is not the case: First I tried … Continue reading

Posted in .NET, API Monitor, Application Compatibility, Debugging, Reverse Engineering, Windows 8.1 | Tagged | 2 Comments