WPF程序崩溃,Window日志分析
WPF程序运行一段时间崩溃,有全局异常捕获,但是捕获不到。
在windows事件管理器找到如下记录,求大佬分析一下
应用程序: PCDemo.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: 异常代码为 c0000005,异常地址为 6A428C61
堆栈:
在 System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(System.Runtime.InteropServices.HandleRef)
在 System.Windows.Forms.UnsafeNativeMethods.DestroyWindow(System.Runtime.InteropServices.HandleRef)
在 System.Windows.Forms.NativeWindow.DestroyHandle()
在 System.Windows.Forms.Control.DestroyHandle()
在 System.Windows.Forms.Control.Dispose(Boolean)
在 System.Windows.Forms.Integration.WinFormsAdapter.Dispose(Boolean)
在 System.ComponentModel.Component.Dispose()
在 System.Windows.Forms.Integration.WindowsFormsHost.DestroyWindowCore(System.Runtime.InteropServices.HandleRef)
在 System.Windows.Interop.HwndHost.DestroyWindow()
在 System.Windows.Interop.HwndHost.Dispose(Boolean)
在 System.Windows.Forms.Integration.WindowsFormsHost.Dispose(Boolean)
在 System.Windows.Interop.HwndHost+WeakEventDispatcherShutdown.OnShutdownFinished(System.Object, System.EventArgs)
在 System.EventHandler.Invoke(System.Object, System.EventArgs)
在 System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(System.Object)
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Windows.Threading.Dispatcher.ShutdownImpl()
在 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
在 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
在 System.Windows.Application.RunDispatcher(System.Object)
在 System.Windows.Application.RunInternal(System.Windows.Window)
在 System.Windows.Application.Run(System.Windows.Window)
在PCDemo.App.Main()