Unahndled Exception When Validating Tooltip

Bug reports.
Posts: 94
Joined: Tue Jun 16, 2009 10:27 pm

Unahndled Exception When Validating Tooltip

Post by costamesakid » Mon Feb 01, 2010 11:38 pm

I have a tooltip with quite a bit of information in it that I need to validate. During recording I enable hotkeys and hover over the object that produces the tooltip. I hit 'V' and the 'T' hot keys. scroll over the tooltip to highlight it, and left mouse click, whereupon Ranorex throws the following exception:

Ranorex Studio Version :
.NET Version : 2.0.50727.3053
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 2
Current culture : English (United States) (en-US)
Working Set Memory : 82756kb
GC Heap Memory : 22134kb

Unhandled exception
Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.

Server stack trace:
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at Ranorex.Controls.ItemRecorder.ValidationRequestCallback(ElementInfo info)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at Ranorex.Core.Recorder.Recorder.ValidationRequestHandler.EndInvoke(IAsyncResult result)
at Ranorex.Core.Recorder.Recorder.ValidationHandlerFinishedCallback(IAsyncResult ar)
at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:
Installed 3rd party AddIns: [RanorexLogViewer], [RxObjectRepository], [RxRecorder], [Workflow Foundation Designer], [ElementTree]
Workbench.ActiveContent: Ranorex.Addins.RecorderPrimaryViewContent
ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\Administrator\My Documents\RanorexStudio Projects\Error\Error.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: Error]

User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Unahndled Exception When Validating Tooltip

Post by Support Team » Tue Feb 02, 2010 11:48 am

Thank you for the bug report. We schedule this problem to be fixed in one of the next service releases.
You do not need to move the mouse over the tooltip to validate it, just press "T" when the tooltip is visible.

Ranorex Team