Tell me how to diagnose. The window (WPF) starts to open, the constructor works, OnLoad works, CanExecute commands start to work, converters start working ... In short, everything goes to opening the window. But then all of a sudden everything falls, a tab with the disassembled code opens and this is the exception
Additional information: You cannot set Visibility or call Show, ShowDialog or WindowInteropHelper.EnsureHandle after closing the window.
The problem is that it does not appear on any particular line, that is, I cannot debug it. Flies randomly. Sometimes I even have time to see the form, but more often not.
OnClosing not performed
UPD:
Stack when falling
PresentationFramework.dll! System.Windows.Window.VerifyCanShow () PresentationFramework.dll! System.Windows.Window.ShowDialog () DevExpress.Xpf.Core.v15.2.dll! DevExpress.Xpf.Core.FloatingWindowContainer.TryAsyncShowMod.Xn.Mn. ) WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.InternalRealCall (System.Delegate callback, object args, int numArgs) WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.TryCatchWhen (object source, System.Delegate callback, object args , int numArgs, System.Delegate catchHandler) WindowsBase.dll! System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) WindowsBase.dll! System.Windows.Threading.DispatcherOperation .InvokeImpl () mscorlib.dll! System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) mscorlib.dll! System.Threading.ConsextCallback callback, object state, bool preserveSyncCtx em.Threading.ExecutionContext executionContext System.Threading.ContextCallback callback object state bool preserveSyncCtx mscorlib.dll! .dll! MS.Internal.CulturePreservingExecutionContext.Run (MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, object state) WindowsBase.dll! System.Windows.Threading.DispatcherOperation.Invoke () WindowsBase.dll! System.Windows.Threading. .Threading.Dispatcher.ProcessQueue () WindowsBase.dll! System.Windows.Threading.Dispatcher.WndProcHook (System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) WindowsBase.dll! MS. Win32.HwndWrapper.WndProc (System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) WindowsBase.dll! MS.Win32.HwndSubclass.DispatcherCallbackOperation (o) WindowsBase.dll! .Windows.Threading.ExceptionWrapper.InternalRealCall (system.Delegate callback, object args, int numArgs) WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.TryCatchWhen (object source, System.Delegate callback, object args, int numArgs, System. Delegate catchHandler) WindowsBase.dll! System.Windows.Threading.Dispatcher.WrappedInvoke (System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) WindowsBase.dll! System.Windows.Threading.Dispatcher.LegacyInvokeImpl (System.Windows .Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) WindowsBase.dll! System.Windows.Threading.Dispatcher.Invoke (System.Windows.Threading.DispatcherPriority priority, System.Delegate method, object arg) WindowsBase.dll! MS.Win32.HwndSubclass.SubclassWndProc (System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) [Transition from machine code to managed] [Transition from control Avanal Code to Machine] WindowsBase.dll! System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage (ref System.Windows.Interop.MSG msg) WindowsBase.dll! System.Windows.Threading.Dispatcher.PushFrameImpl (System.Windows.Threading.Dispatrac frame) PresentationFramework.dll! System.Windows.Application.RunDispatcher (object ignore) PresentationFramework.dll! System.Windows.Application.RunInternal (System.Windows.Window window) ClientOperator223.exe! ClientOperator223.App.Main () [Transition from machine code to managed] [Transition from managed code to machine code] Microsoft.VisualStudio.HostingProcess.Utilities.dll! Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly () mscorlib.dll! System.Threading.ExecutionContext.RunInternal (System.Threading. ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) mscorlib.dll! System.Threadi ng.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) mscorlib.dll! System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executiontextreadtechnology_technology_text.chreading.text.teating.technology/contact.textContextContextContext.Run (System.ThreadingContext.ExecutionContext) callback, object state) mscorlib.dll! System.Threading.ThreadHelper.ThreadStart ()
Showby the window? - Umed