tisdag 21 december 2010

DebugView from VB6 and C#

Use System.Diagnostics.Debug.WriteLine() in C# to generate print outs that can be displayed in the excellent tool DebugView.

In VB6, use OutputDebugString().

tisdag 9 november 2010

Command window here

On Windows 7:

Use SHIFT+right_click in Windows Explorer to get a lot more features. For example "Open command window here".

tisdag 2 november 2010

Find crash dump file

On Windows XP Dr Watson is the default tool that generates crash dump files. They are sent to Microsoft if you accept the dialog box after a program crash.

Dr Watson

This is the default location for dump files: C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson\user.dmp

To bring up the GUI: drwtsn32.exe

Use Windbg to analyze the crash dump file. Included in Windows SDK, debugging tools. The PDB-files for the crashing app is needed to make any sense of the dump file.a

In Windows 7, Dr Watson is replaced by the Action Center. Use Task Manager and right click on the process and select "Create Dump File".

onsdag 27 oktober 2010

Windows trouble shooter

Here is good help: msconfig.exe

Just enter "msconfig.exe" from Start menu/Run.

tisdag 7 september 2010

onsdag 1 september 2010