我已經追蹤了我的死鎖,並且不再抽出消息,但是我該如何更進一步,弄清楚線程目前正在做什麼?我使用的WinDbg和隨機遊動使用!不要也沒有給我anuthing到目前爲止我怎麼知道是什麼的UnsafeNativeMethods.DispatchMessageA通話使用的WinDbg在做什麼?
千恩萬謝
奧斯卡
0:057> !clrstack
OS Thread Id: 0x17f8 (57)
ESP EIP
1393f1ac 2070a64a [NDirectMethodFrameStandalone: 1393f1ac] System.Windows.Forms.UnsafeNativeMethods.DispatchMessageA(MSG ByRef)
1393f1bc 04851c91 System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
1393f258 04851276 System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
1393f2a0 048507e3 System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
1393f2d0 0485062f System.Windows.Forms.Application.Run()
+1,因爲我討厭看到沒有選票被接受的答案:) – 2009-10-02 06:22:21