When launching Toad Data Point, the following error occurs randomly:
System.TypeInitializationException
The type initializer for 'System.Windows.Automation.Peers.AutomationPeer' threw an exception.
Stack Trace:
at System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
at System.Windows.Input.KeyboardDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.PossiblyDeactivate(IntPtr hwndFocus)
at System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, 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)
System.TypeInitializationException
The type initializer for 'System.Windows.Automation.InvokePatternIdentifiers' threw an exception.
Stack Trace:
at System.Windows.Automation.Peers.AutomationPeer.Initialize()
at System.Windows.Automation.Peers.AutomationPeer..cctor()
System.TypeInitializationException
The type initializer for 'MS.Internal.Automation.AutomationIdentifierConstants' threw an exception.
Stack Trace:
at System.Windows.Automation.AutomationIdentifier.IsPatternSupported(Int32 id)
at System.Windows.Automation.AutomationIdentifier.Register(AutomationIdType type, Int32 id, String programmaticName)
at System.Windows.Automation.InvokePatternIdentifiers..cctor()
System.TypeInitializationException
The type initializer for 'MS.Internal.UIAutomationTypes.Interop.OSVersionHelper' threw an exception.
Stack Trace:
at MS.Internal.Automation.AutomationIdentifierConstants..cctor()
System.ArgumentNullException
Value cannot be null.
Parameter name: path1
Stack Trace:
at System.IO.Path.Combine(String path1, String path2)
at MS.Internal.UIAutomationTypes.PresentationNativeLoader.GetWPFInstallPath()
at MS.Internal.UIAutomationTypes.PresentationNativeLoader.EnsureLoaded()
at MS.Internal.UIAutomationTypes.Interop.OSVersionHelper..cctor()