April, 2004

  • greggm's WebLog

    Diagnosing 'The debugger is not properly installed'

    • 58 Comments
    One of the error codes that we included in the VS.NET 2002 and 2003 debuggers is: The debugger is not properly installed. Run setup to install or repair the debugger. Diagnosing this is much harder then it should be (more on this later). For now lets...
  • greggm's WebLog

    Attaching to a process without a dialog

    • 8 Comments
    In http://blogs.msdn.com/shaykatc/archive/2004/04/19/116222.aspx , Shaykat gave one alternative to the ntsd '-pn' option. I figured I would give two more. Alternative #1 - Attach project. Open the exe as a project (File->Open->Project, then select...
  • greggm's WebLog

    Data Breakpoints

    • 8 Comments
    Usually, people put breakpoints on an instruction. These breakpoints are set by replacing the first byte of an instruction with the ‘int 3’ instruction (0xcc). When the processor executes the ‘int 3’ instruction, it causes the...
  • greggm's WebLog

    Rant: Why do unsafe string functions still exist?

    • 7 Comments
    One thing that I fail to understand is why, in 2004, we still have code that uses strcat, strcpy, sprintf or any of the other string functions that don’t take a buffer size input. Microsoft, Open source, etc all still use these functions. Why? Can...
  • greggm's WebLog

    Breakpoint exceptions from the heap

    • 2 Comments
    New programmers sometimes ask why the debugger stopped at a ‘user breakpoint’ exception in their program. The exception dialog will come up and say something like: Unhandled exception at 0x77f75a58 in CoruptHeap.exe: User breakpoint. ...
  • greggm's WebLog

    Back from India

    • 0 Comments
    In case anyone noticed, I haven’t blogged for a while. I also haven’t been answer questions in my comments. This is because I was on vacation in India. If you left a comment, it should now have an answer.
  • greggm's WebLog

    CoUnmarshalInterface and firewalls

    • 0 Comments
    One of the features I have recently worked on is improving our error messages around firewalls. I have a suggestion to anyone trying to use CoUnmarshalInterface to unmarshal an interface on a remote machine – don’t show the user the HRESULT...
Page 1 of 1 (7 items)