none
AutomationPeer NullReferenceException RRS feed

  • Question

  • Hi i got the following exception:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at System.Windows.Automation.Peers.AutomationPeer.Initialize()
       at System.Windows.Automation.Peers.AutomationPeer..ctor()
       at System.Windows.Automation.Peers.UIElementAutomationPeer..ctor(UIElement owner)
       at System.Windows.Window.OnCreateAutomationPeer()
       at System.Windows.UIElement.CreateAutomationPeer()
       at System.Windows.Automation.Peers.UIElementAutomationPeer.CreatePeerForElement(UIElement element)
       at System.Windows.Interop.HwndTarget.CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, IntPtr handle)
       at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    However when i restart the application again, it works (I have to End Task from the Task Manager). I'm using Windows 7 Professional with PQLabs multitouch overlay. I've set the application to start everytime it logs in into windows using Task Scheduler. Sometimes it runs fine.. sometimes it ran into this exception after startup.

    Sunday, March 20, 2011 5:10 AM

All replies

  • Hi,

    I've faced with the same problem. Have you found any solution for this?

    Thanks in advance,
    Artem Zagorodnyuk

    Wednesday, May 27, 2015 7:04 AM