|
|
| | |
My application is frezzing Posted: 24 Jun 09 7:11 AM (United States) |
| | |
Hi all
I have a C# windows application, when it is become idle, it freeze, this happen from time to time.
I get the dump file, but I was unable to analyze it using WinDbg.
I got this stack log file using Managed Stack Explorer.
Any Help appreciated.
23/06/2009 12:33:20 PM Stack trace depth is set to show all frames
Thread ID: 2700 0. (Source Unavailable) 1. (Source Unavailable) 2. System.ComponentModel.BackgroundWorker.OnDoWork (Source Unavailable) 3. System.ComponentModel.BackgroundWorker.WorkerThreadStart (Source Unavailable) 4. System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage (Source Unavailable) 5. System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage (Source Unavailable) 6. System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall (Source Unavailable) 7. System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack (Source Unavailable) 8. System.Threading._ThreadPoolWaitCallback.WaitCallback_Context (Source Unavailable) 9. System.Threading.ExecutionContext.Run (Source Unavailable) 10. System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal (Source Unavailable) 11. System.Threading._ThreadPoolWaitCallback.PerformWaitCallback (Source Unavailable)
23/06/2009 12:33:02 PM Stack trace depth is set to show all frames
Thread ID: 4008 0. DevComponents.DotNetBar.?.? (Source Unavailable) 1. System.Threading.ThreadHelper.ThreadStart_Context (Source Unavailable) 2. System.Threading.ExecutionContext.Run (Source Unavailable) 3. System.Threading.ThreadHelper.ThreadStart (Source Unavailable)
23/06/2009 12:32:44 PM Stack trace depth is set to show all frames
Thread ID: 620 0. System.Threading.WaitHandle.WaitAny (Source Unavailable) 1. System.Net.TimerThread.ThreadProc (Source Unavailable) 2. System.Threading.ThreadHelper.ThreadStart_Context (Source Unavailable) 3. System.Threading.ExecutionContext.Run (Source Unavailable) 4. System.Threading.ThreadHelper.ThreadStart (Source Unavailable)
23/06/2009 12:32:25 PM Stack trace depth is set to show all frames
Thread ID: 2004 0. [Internal thisFrame, 'M-->U', System.Net.UnsafeNclNativeMethods.SafeNetHandles::accept] (Source Unavailable) 1. System.Net.SafeCloseSocket.InnerSafeCloseSocket.Accept (Source Unavailable) 2. System.Net.Sockets.Socket.Accept (Source Unavailable) 3. System.Net.Sockets.TcpListener.AcceptSocket (Source Unavailable) 4. System.Runtime.Remoting.Channels.Http.HttpServerChannel.Listen (Source Unavailable) 5. System.Threading.ThreadHelper.ThreadStart_Context (Source Unavailable) 6. System.Threading.ExecutionContext.Run (Source Unavailable) 7. System.Threading.ThreadHelper.ThreadStart (Source Unavailable)
23/06/2009 12:32:08 PM Stack trace depth is set to show all frames
Thread ID: 592 0. (Source Unavailable) 1. (Source Unavailable) 2. System.ComponentModel.BackgroundWorker.OnDoWork (Source Unavailable) 3. System.ComponentModel.BackgroundWorker.WorkerThreadStart (Source Unavailable) 4. System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage (Source Unavailable) 5. System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage (Source Unavailable) 6. System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall (Source Unavailable) 7. System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack (Source Unavailable) 8. System.Threading._ThreadPoolWaitCallback.WaitCallback_Context (Source Unavailable) 9. System.Threading.ExecutionContext.Run (Source Unavailable) 10. System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal (Source Unavailable) 11. System.Threading._ThreadPoolWaitCallback.PerformWaitCallback (Source Unavailable)
23/06/2009 12:31:53 PM Stack trace depth is set to show all frames
Thread ID: 316 0. System.Threading.WaitHandle.WaitOne (Source Unavailable) 1. System.Threading.WaitHandle.WaitOne (Source Unavailable) 2. System.Windows.Forms.Control.WaitForWaitHandle (Source Unavailable) 3. System.Windows.Forms.Control.MarshaledInvoke (Source Unavailable) 4. System.Windows.Forms.Control.Invoke (Source Unavailable) 5. (Source Unavailable) 6. (Source Unavailable) 7. System.Threading.ThreadHelper.ThreadStart_Context (Source Unavailable) 8. System.Threading.ExecutionContext.Run (Source Unavailable) 9. System.Threading.ThreadHelper.ThreadStart (Source Unavailable)
23/06/2009 12:30:58 PM Stack trace depth is set to show all frames
Thread ID: 3888 0. System.Threading.WaitHandle.WaitOne (Source Unavailable) 1. System.Threading.WaitHandle.WaitOne (Source Unavailable) 2. System.Windows.Forms.Control.WaitForWaitHandle (Source Unavailable) 3. System.Windows.Forms.Control.MarshaledInvoke (Source Unavailable) 4. System.Windows.Forms.Control.Invoke (Source Unavailable) 5. System.Windows.Forms.WindowsFormsSynchronizationContext.Send (Source Unavailable) 6. Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.Invoke (Source Unavailable) 7. Microsoft.Win32.SystemEvents.RaiseEvent (Source Unavailable) 8. Microsoft.Win32.SystemEvents.OnUserPreferenceChanged (Source Unavailable) 9. Microsoft.Win32.SystemEvents.WindowProc (Source Unavailable) 10. [Internal thisFrame, 'M-->U', System.Windows.Forms.UnsafeNativeMethods::DispatchMessageW] (Source Unavailable) 11. System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (Source Unavailable) 12. System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner (Source Unavailable) 13. System.Windows.Forms.Application.ThreadContext.RunMessageLoop (Source Unavailable) 14. System.Windows.Forms.Application.DoEvents (Source Unavailable) 15. DevComponents.DotNetBar.PanelEx.OnSystemColorsChanged (Source Unavailable) 16. System.Windows.Forms.Control.OnSystemColorsChanged (Source Unavailable) 17. DevComponents.DotNetBar.PanelEx.OnSystemColorsChanged (Source Unavailable) 18. System.Windows.Forms.Control.OnSystemColorsChanged (Source Unavailable) 19. System.Windows.Forms.Control.UserPreferenceChanged (Source Unavailable) 20. System.RuntimeMethodHandle.InvokeMethodFast (Source Unavailable) 21. System.Reflection.RuntimeMethodInfo.Invoke (Source Unavailable) 22. System.Delegate.DynamicInvokeImpl (Source Unavailable) 23. Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.InvokeCallback (Source Unavailable) 24. System.RuntimeMethodHandle.InvokeMethodFast (Source Unavailable) 25. System.Reflection.RuntimeMethodInfo.Invoke (Source Unavailable) 26. System.Delegate.DynamicInvokeImpl (Source Unavailable) 27. System.Windows.Forms.Control.InvokeMarshaledCallbackDo (Source Unavailable) 28. System.Windows.Forms.Control.InvokeMarshaledCallbackHelper (Source Unavailable) 29. System.Windows.Forms.Control.InvokeMarshaledCallback (Source Unavailable) 30. System.Windows.Forms.Control.InvokeMarshaledCallbacks (Source Unavailable) 31. System.Windows.Forms.Control.MarshaledInvoke (Source Unavailable) 32. System.Windows.Forms.Control.Invoke (Source Unavailable) 33. System.Windows.Forms.WindowsFormsSynchronizationContext.Send (Source Unavailable) 34. Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.Invoke (Source Unavailable) 35. Microsoft.Win32.SystemEvents.RaiseEvent (Source Unavailable) 36. Microsoft.Win32.SystemEvents.OnUserPreferenceChanged (Source Unavailable) 37. Microsoft.Win32.SystemEvents.WindowProc (Source Unavailable) 38. [Internal thisFrame, 'M-->U', System.Windows.Forms.UnsafeNativeMethods::DispatchMessageW] (Source Unavailable) 39. System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (Source Unavailable) 40. System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner (Source Unavailable) 41. System.Windows.Forms.Application.ThreadContext.RunMessageLoop (Source Unavailable) 42. System.Windows.Forms.Application.RunDialog (Source Unavailable) 43. System.Windows.Forms.Form.ShowDialog (Source Unavailable) 44. (Source Unavailable) 45. System.Windows.Forms.MenuItem.OnClick (Source Unavailable) 46. System.Windows.Forms.MenuItem.MenuItemData.Execute (Source Unavailable) 47. System.Windows.Forms.Command.Invoke (Source Unavailable) 48. System.Windows.Forms.Command.DispatchID (Source Unavailable) 49. System.Windows.Forms.Control.WmCommand (Source Unavailable) 50. System.Windows.Forms.Control.WndProc (Source Unavailable) 51. System.Windows.Forms.ScrollableControl.WndProc (Source Unavailable) 52. System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Source Unavailable) 53. System.Windows.Forms.Control.ControlNativeWindow.WndProc (Source Unavailable) 54. System.Windows.Forms.NativeWindow.Callback (Source Unavailable) 55. [Internal thisFrame, 'M-->U', System.Windows.Forms.UnsafeNativeMethods::DispatchMessageW] (Source Unavailable) 56. System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (Source Unavailable) 57. System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner (Source Unavailable) 58. System.Windows.Forms.Application.ThreadContext.RunMessageLoop (Source Unavailable) 59. System.Windows.Forms.Application.Run (Source Unavailable) 60. (Source Unavailable) 61. System.RuntimeMethodHandle.InvokeMethodFast (Source Unavailable) 62. System.Reflection.RuntimeMethodInfo.Invoke (Source Unavailable) 63. System.Reflection.RuntimeMethodInfo.Invoke (Source Unavailable) 64. System.Reflection.MethodBase.Invoke (Source Unavailable) 65. (Source Unavailable) 66. (Source Unavailable) 67. (Source Unavailable) 68. System.RuntimeMethodHandle.InvokeMethodFast (Source Unavailable) 69. System.Reflection.RuntimeMethodInfo.Invoke (Source Unavailable) 70. System.Reflection.RuntimeMethodInfo.Invoke (Source Unavailable) 71. System.Reflection.MethodBase.Invoke (Source Unavailable)
23/06/2009 12:34:35 PM Stack trace depth is set to show all frames
Thread ID: 1076 0. [Internal thisFrame, 'M-->U', System.Net.UnsafeNclNativeMethods.SafeNetHandles::accept] (Source Unavailable) 1. System.Net.SafeCloseSocket.InnerSafeCloseSocket.Accept (Source Unavailable) 2. System.Net.Sockets.Socket.Accept (Source Unavailable) 3. System.Net.Sockets.TcpListener.AcceptSocket (Source Unavailable) 4. System.Runtime.Remoting.Channels.Http.HttpServerChannel.Listen (Source Unavailable) 5. System.Threading.ThreadHelper.ThreadStart_Context (Source Unavailable) 6. System.Threading.ExecutionContext.Run (Source Unavailable) 7. System.Threading.ThreadHelper.ThreadStart (Source Unavailable)
|
| |
| | |
Re: My application is frezzing Posted: 29 Jun 09 8:16 AM (Canada) |
| | |
Howdy. Four things jump to mind when looking at the stack dumps. -there seems to be a problem with the threading (OnDoWork, WaitAny, WaitOne) -the app is using a third party library (DevComponents.DotNetBar) -something going on with unsafe pointers (UnsafeNclNativeMethods) -something going on with the network (code is opening sockets)
Is this your code/application or someone else's? If it's your's then it could be you're blocking on something or you're doing something funky with the network calls. If it's someone else's application, then it's their issue.
Hope that helps. |
| |
| | |
Re: My application is frezzing Posted: 29 Jun 09 9:41 AM (United States) |
| | |
Howdy. Four things jump to mind when looking at the stack dumps. -there seems to be a problem with the threading (OnDoWork, WaitAny, WaitOne) Yes, I am looking to figure out where is the problem.
-the app is using a third party library (DevComponents.DotNetBar) Yes, this is for Interface.
-something going on with unsafe pointers (UnsafeNclNativeMethods) com dll
-something going on with the network (code is opening sockets) remote object
Is this your code/application or someone else's? this is my code/application.
If it's your's then it could be you're blocking on something or you're doing something funky with the network calls. I have a service and an interface and they comunicate with each other’s using .Net remoting. Connection is a 2 way using channels.
If it's someone else's application, then it's their issue. some code is copy and pasted from google which is tested and there is no problem with it.
In DoWork, Is it safe to use/update public members ?
suppose I have
public remoteType rt; public string s;
inside the backgroundWorker, can I use/upadte the above members as following:
s = "something";
bool result = rt.ExecuteQuery(sql)
where rt is created on the main thread.
thanks Peter.
|
| |
| | .NET Development MCTS 70-536 Study Group My application is frezzing | | |
| | | |