G
Guest
I have an VS 2005 C# app that hangs after the screen saver activates. The
debugger shows the following stack when this happens.
Does anyone know what the app is waiting for?
STACK:
[In a sleep, wait, or join]
mscorlib.dll!System.Threading.WaitHandle.WaitOne(long timeout, bool
exitContext) + 0x2e bytes
mscorlib.dll!System.Threading.WaitHandle.WaitOne(int millisecondsTimeout,
bool exitContext) + 0x23 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WaitForWaitHandle(System.Threading.WaitHandle
waitHandle = {System.Threading.ManualResetEvent}) + 0xa1 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control
caller, System.Delegate method, object[] args, bool synchronous) + 0x36d
bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.Invoke(System.Delegate
method, object[] args) + 0x48 bytes
System.Windows.Forms.dll!System.Windows.Forms.WindowsFormsSynchronizationContext.Send(System.Threading.SendOrPostCallback d, object state) + 0x61 bytes
System.dll!Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.Invoke(bool
checkFinalization = true, object[] args = {Dimensions:[0x00000002]}) + 0x68
bytes
System.dll!Microsoft.Win32.SystemEvents.RaiseEvent(bool checkFinalization =
true, object key = {object}, object[] args = {Dimensions:[0x00000002]}) +
0x106 bytes
System.dll!Microsoft.Win32.SystemEvents.OnUserPreferenceChanging(int msg,
System.IntPtr wParam, System.IntPtr lParam) + 0x6f bytes
System.dll!Microsoft.Win32.SystemEvents.WindowProc(System.IntPtr hWnd =
0x001e10a4, int msg = 0x0000201a, System.IntPtr wParam = 0x00000000,
System.IntPtr lParam = 0x066462f0) + 0x288 bytes
[Native to Managed Transition]
[Managed to Native Transition]
System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(int
dwComponentID, int reason = 0xffffffff, int pvLoopData = 0x00000000) + 0x2ea
bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int
reason = 0xffffffff, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x17d bytes
System.Windows.Forms.dll!
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason,
System.Windows.Forms.ApplicationContext context) + 0x53 bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm) + 0x2e bytes
OmniProWms.exe!OmniPro.Wms.OmniProWms.Main(string[] args =
{Dimensions:[0x00000000]}) Line 680 + 0x1a bytes C#
debugger shows the following stack when this happens.
Does anyone know what the app is waiting for?
STACK:
[In a sleep, wait, or join]
mscorlib.dll!System.Threading.WaitHandle.WaitOne(long timeout, bool
exitContext) + 0x2e bytes
mscorlib.dll!System.Threading.WaitHandle.WaitOne(int millisecondsTimeout,
bool exitContext) + 0x23 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WaitForWaitHandle(System.Threading.WaitHandle
waitHandle = {System.Threading.ManualResetEvent}) + 0xa1 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control
caller, System.Delegate method, object[] args, bool synchronous) + 0x36d
bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.Invoke(System.Delegate
method, object[] args) + 0x48 bytes
System.Windows.Forms.dll!System.Windows.Forms.WindowsFormsSynchronizationContext.Send(System.Threading.SendOrPostCallback d, object state) + 0x61 bytes
System.dll!Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.Invoke(bool
checkFinalization = true, object[] args = {Dimensions:[0x00000002]}) + 0x68
bytes
System.dll!Microsoft.Win32.SystemEvents.RaiseEvent(bool checkFinalization =
true, object key = {object}, object[] args = {Dimensions:[0x00000002]}) +
0x106 bytes
System.dll!Microsoft.Win32.SystemEvents.OnUserPreferenceChanging(int msg,
System.IntPtr wParam, System.IntPtr lParam) + 0x6f bytes
System.dll!Microsoft.Win32.SystemEvents.WindowProc(System.IntPtr hWnd =
0x001e10a4, int msg = 0x0000201a, System.IntPtr wParam = 0x00000000,
System.IntPtr lParam = 0x066462f0) + 0x288 bytes
[Native to Managed Transition]
[Managed to Native Transition]
System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(int
dwComponentID, int reason = 0xffffffff, int pvLoopData = 0x00000000) + 0x2ea
bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int
reason = 0xffffffff, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x17d bytes
System.Windows.Forms.dll!
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason,
System.Windows.Forms.ApplicationContext context) + 0x53 bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm) + 0x2e bytes
OmniProWms.exe!OmniPro.Wms.OmniProWms.Main(string[] args =
{Dimensions:[0x00000000]}) Line 680 + 0x1a bytes C#