Junfeng Zhang's Musing

things about the world, world of things

April, 2008

  • Junfeng Zhang's Musing

    Consider Creating a new class for locking

    • 5 Comments
    C# provides keyword lock for synchronized access. A good practice is to create a private object for locking purpose. For example, public class LockExample { private object syncObject = new object (); public void SynchronizedMethod()...
  • Junfeng Zhang's Musing

    Use !htrace to debug handle leak

    • 3 Comments
    Windbg Debugger’s !htrace extension is very handy to debug handle leak. The process essentially boils down to the following simple steps: 1. Enable trace 2. Take a snapshot 3. Run scenario 4. Show the diff On step 4, !htrace will show...
  • Junfeng Zhang's Musing

    Event Handles “leak”

    • 3 Comments
    On our stress run, we saw our process’ handle count steadily increases until certain point, then it stabilizes. However the number of handles is high. Most of those handles are Event handles. We are concerned about it. So we went off and did some investigation...
  • Junfeng Zhang's Musing

    A case study of a NullReferenceException

    • 3 Comments
    We are seeing a NullReferenceException in our stress program. The investigation process may be helpful to some folks. Thread 22 is showing a Watson dialog. This is a register corruption. 0:022> kp ChildEBP RetAddr 091bc9a0 76961220...
Page 1 of 1 (4 items)