Exception:“System.Windows.Controls.ToolTip”的类型初始值设定项引发异常。尝试读取或写入受保护的内存。这通常指示其他内存已损坏。

报错信息 1
TypeInitializationException: “System.Windows.Controls.ToolTip”的类型初始值设定项引发异常。
--TypeName: System.Windows.Controls.ToolTip
StackTrace:
   在 System.Windows.Controls.PopupControlService.SentinelToolTip(DependencyObject o, TriggerAction triggerAction)
   在 System.Windows.Controls.PopupControlService.BeginShowToolTip(DependencyObject o, TriggerAction triggerAction)
   在 System.Windows.Controls.PopupControlService.OnPostProcessInput(Object sender, ProcessInputEventArgs e)
   在 System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   在 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
StackTrace:
   在 System.Windows.SystemColors.GetSystemColor(CacheSlot slot)
   在 System.Windows.SystemColors.MakeBrush(CacheSlot slot)
   在 System.Windows.Controls.ToolTip..cctor()

版本:1.43.3 2025-11-28 23:02 Microsoft Windows NT 10.0.26100.0