Exception thrown

Bug reports.
User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Exception thrown

Post by sdaly » Mon May 10, 2010 11:08 am

The below exception was thrown when trying to run tests after a previous failure.

Ranorex Studio Version : 2.3.0.8345
.NET Version : 2.0.50727.3053
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 2
Current culture : English (United Kingdom) (en-GB)
Current UI language : en-US
Working Set Memory : 105084kb
GC Heap Memory : 25181kb

Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at ICSharpCode.FormsDesigner.Gui.SideTabItemDesigner.ReloadToolBox()
at ICSharpCode.FormsDesigner.Gui.CustomComponentsSideTab.ScanProjectAssemblies()
at ICSharpCode.FormsDesigner.Gui.CustomComponentsSideTab.RescanProjectAssemblies(Object sender, EventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at ICSharpCode.SharpDevelop.Project.ProjectService.RaiseEventEndBuild(BuildEventArgs e)
at ICSharpCode.SharpDevelop.Project.Commands.Build.AfterBuild()
at ICSharpCode.SharpDevelop.Project.Commands.AbstractBuildMenuCommand.CallbackMethod(BuildResults results)
at ICSharpCode.SharpDevelop.Project.BuildEngine.<ReportDone>b__0()

---- 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 2.3.0.8345], [RxObjectRepository 2.3.0.8345], [RxRecorder 2.3.0.8345], [Workflow Foundation Designer 2.3.0.8345], [ElementTree 2.3.0.8345]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.CompilerMessageView
ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\sdaly\My Documents\RanorexStudio Projects\Central Vision\Central Vision.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VBNetProject: Central Vision]

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

Re: Exception thrown

Post by Support Team » Wed May 12, 2010 5:45 pm

Thank you for reporting this bug. We could not really reproduce that issue, but we added a check for possible null references, so at least the exception should not be thrown any more.

Did you add any custom items to the ToolBox or do you have any custom Windows Forms controls in your project?

Regards,
Alex
Ranorex Support Team

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Exception thrown

Post by sdaly » Fri May 14, 2010 12:39 pm

Hi Alex, we are using a form as a menu for out tests. We start it by the following -

Dim testMenu As New Windows.Forms.Form
testMenu = New Menu
testMenu.ShowDialog

I can email you a screen capture if it helps(tried to attach but its blocked by out app proxy).

Thanks
Scott

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

Re: Exception thrown

Post by Support Team » Mon May 17, 2010 11:14 am

Hi Scott!

We've fixed a bug, which can solve your problem too. This fix will be included in next version of Ranorex.

Regards,
Peter
Ranorex Support Team