System.windows.controls.uielementcollection cannot be null sửa lỗi năm 2024

Disclaimer: The information provided on DevExpress.com and affiliated web properties [including the DevExpress Support Center] is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confindential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

-- if A null-check can give us something to breathe and it could solve the problem! So where the problem of making a Null-Check ?

The problem is not new and it dosen't solve until today and the .Net 5 is not the solution for this problem, because we will be not uptodate! Unfortunately we are thinking now to stop using WPF and stay by Winforms and ASP.

I don't know, how it will be with .Net 7. I hope that, they do not have like this problem.

Anyway here is the result of the exception and we hope to find the solution in .Net 6.0.5!!:

XML:

1026 2 0 0x80000000000000 45525 Application PC1388 Application: Project.exe CoreCLR Version: 6.0.422.16404 .NET Version: 6.0.4 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentNullException: Value cannot be null. [Parameter 'element'] at System.Windows.Controls.ToolTipService.GetBetweenShowDelay[DependencyObject element] at System.Windows.Controls.PopupControlService.CloseToolTip[ToolTip tooltip] at System.Windows.Controls.PopupControlService.OnPostProcessInput[Object sender, ProcessInputEventArgs e] at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers[Tuple`2 postProcessInput, ProcessInputEventArgs processInputEventArgs] at System.Windows.Input.InputManager.ProcessStagingArea[] at System.Windows.Input.MouseDevice.Synchronize[] at System.Windows.Input.MouseDevice.ChangeMouseCapture[IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, Int32 timestamp] at System.Windows.Input.MouseDevice.Capture[IInputElement element, CaptureMode captureMode] at CefSharp.Wpf.ChromiumWebBrowser.OnMouseDown[MouseButtonEventArgs e] in C:\projects\cefsharp\CefSharp.Wpf\ChromiumWebBrowser.cs:line 2239 at System.Windows.UIElement.OnMouseDownThunk[Object sender, MouseButtonEventArgs e] at System.Windows.RoutedEventArgs.InvokeHandler[Delegate handler, Object target] at System.Windows.EventRoute.InvokeHandlersImpl[Object source, RoutedEventArgs args, Boolean reRaised] at System.Windows.UIElement.RaiseEventImpl[DependencyObject sender, RoutedEventArgs args] at System.Windows.UIElement.RaiseTrustedEvent[RoutedEventArgs args] at System.Windows.Input.InputManager.ProcessStagingArea[] at System.Windows.Input.InputProviderSite.ReportInput[InputReport inputReport] at System.Windows.Interop.HwndMouseInputProvider.ReportInput[IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel] at System.Windows.Interop.HwndMouseInputProvider.FilterMessage[IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled] at System.Windows.Interop.HwndSource.InputFilterMessage[IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled] at MS.Win32.HwndWrapper.WndProc[IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled] at MS.Win32.HwndSubclass.DispatcherCallbackOperation[Object o] at System.Windows.Threading.ExceptionWrapper.InternalRealCall[Delegate callback, Object args, Int32 numArgs] at System.Windows.Threading.ExceptionWrapper.TryCatchWhen[Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler] at System.Windows.Threading.Dispatcher.LegacyInvokeImpl[DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs] at MS.Win32.HwndSubclass.SubclassWndProc[IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam] at MS.Win32.UnsafeNativeMethods.DispatchMessage[MSG& msg] at System.Windows.Threading.Dispatcher.PushFrameImpl[DispatcherFrame frame] at System.Windows.Threading.Dispatcher.PushFrame[DispatcherFrame frame] at System.Windows.Threading.Dispatcher.Run[] at System.Windows.Application.RunDispatcher[Object ignore] at System.Windows.Application.RunInternal[Window window] at System.Windows.Application.Run[] at Application.Desktop.App.Main[]

Exception:

Application: Project.exe CoreCLR Version: 6.0.422.16404 .NET Version: 6.0.4 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentNullException: Value cannot be null. [Parameter 'element'] at System.Windows.Controls.ToolTipService.GetBetweenShowDelay[DependencyObject element] at System.Windows.Controls.PopupControlService.CloseToolTip[ToolTip tooltip] at System.Windows.Controls.PopupControlService.OnPostProcessInput[Object sender, ProcessInputEventArgs e] at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers[Tuple`2 postProcessInput, ProcessInputEventArgs processInputEventArgs] at System.Windows.Input.InputManager.ProcessStagingArea[] at System.Windows.Input.MouseDevice.Synchronize[] at System.Windows.Input.MouseDevice.ChangeMouseCapture[IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, Int32 timestamp] at System.Windows.Input.MouseDevice.Capture[IInputElement element, CaptureMode captureMode] at CefSharp.Wpf.ChromiumWebBrowser.OnMouseDown[MouseButtonEventArgs e] in C:\projects\cefsharp\CefSharp.Wpf\ChromiumWebBrowser.cs:line 2239 at System.Windows.UIElement.OnMouseDownThunk[Object sender, MouseButtonEventArgs e] at System.Windows.RoutedEventArgs.InvokeHandler[Delegate handler, Object target] at System.Windows.EventRoute.InvokeHandlersImpl[Object source, RoutedEventArgs args, Boolean reRaised] at System.Windows.UIElement.RaiseEventImpl[DependencyObject sender, RoutedEventArgs args] at System.Windows.UIElement.RaiseTrustedEvent[RoutedEventArgs args] at System.Windows.Input.InputManager.ProcessStagingArea[] at System.Windows.Input.InputProviderSite.ReportInput[InputReport inputReport] at System.Windows.Interop.HwndMouseInputProvider.ReportInput[IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel] at System.Windows.Interop.HwndMouseInputProvider.FilterMessage[IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled] at System.Windows.Interop.HwndSource.InputFilterMessage[IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled] at MS.Win32.HwndWrapper.WndProc[IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled] at MS.Win32.HwndSubclass.DispatcherCallbackOperation[Object o] at System.Windows.Threading.ExceptionWrapper.InternalRealCall[Delegate callback, Object args, Int32 numArgs] at System.Windows.Threading.ExceptionWrapper.TryCatchWhen[Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler] at System.Windows.Threading.Dispatcher.LegacyInvokeImpl[DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs] at MS.Win32.HwndSubclass.SubclassWndProc[IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam] at MS.Win32.UnsafeNativeMethods.DispatchMessage[MSG& msg] at System.Windows.Threading.Dispatcher.PushFrameImpl[DispatcherFrame frame] at System.Windows.Threading.Dispatcher.PushFrame[DispatcherFrame frame] at System.Windows.Threading.Dispatcher.Run[] at System.Windows.Application.RunDispatcher[Object ignore] at System.Windows.Application.RunInternal[Window window] at System.Windows.Application.Run[] at Application.Desktop.App.Main[]

XML

1000 2 100 0x80000000000000 45526 Application PC1388 BibliothekSystem.exe 1.0.0.0 61e1d8d9 KERNELBASE.dll 10.0.17763.2803 bfcd0c87 e0434352 0000000000039319 2094 01d8589e2484668b C:\Program Files\Project\Project.exe C:\Windows\System32\KERNELBASE.dll 108bbd7d-0ede-41d2-a40f-55b762a52ac3

Exception

Name der fehlerhaften Anwendung: Project.exe, Version: 1.0.0.0, Zeitstempel: 0x61e1d8d9 Name des fehlerhaften Moduls: KERNELBASE.dll, Version: 10.0.17763.2803, Zeitstempel: 0xbfcd0c87 Ausnahmecode: 0xe0434352 Fehleroffset: 0x0000000000039319 ID des fehlerhaften Prozesses: 0x2094 Startzeit der fehlerhaften Anwendung: 0x01d8589e2484668b Pfad der fehlerhaften Anwendung: C:\Program Files\Project\Project.exe Pfad des fehlerhaften Moduls: C:\Windows\System32\KERNELBASE.dll Berichtskennung: 108bbd7d-0ede-41d2-a40f-55b762a52ac3 Vollständiger Name des fehlerhaften Pakets: Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

Chủ Đề