I am creating a wpf test for my wpf application in test studio. The behavior of test studio is different at different times. I am able to record the same scenario by chance only. Most of the times when i try to record the same scenario it crashes.
Can anyone please let me know whats happening here?
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.TestStudio.Wpf.RecordingSurface.WpfRecordingSurfaceManager.UnBind(IntPtr hwnd)
at ArtOfTest.WebAii.Design.RemoteRecorder.WpfRemoteRecorder._watcher_WindowDestroyed(Object sender, WindowEventArgs e)
at Telerik.TestingFramework.XamlExtension.TechSpecific.OnWindowClosed(Window win)
at Telerik.TestingFramework.XamlExtension.TechSpecific._watcher_WindowDestroyed(Object sender, WindowEventArgs e)
at ArtOfTest.Common.Win32.WindowWatcher.OnWindowDestroyed(Window window)
at ArtOfTest.Common.Win32.WindowWatcher._windowsWatcherHook_HookInvoked(Object sender, HookEventArgs e)
at ArtOfTest.Common.Win32.LocalWindowsHook.OnHookInvoked(HookEventArgs e)
at ArtOfTest.Common.Win32.LocalWindowsHook.CoreHookProc(Int32 code, IntPtr wParam, IntPtr lParam)