Page 1 of 1

Ranorex crashes with unhandled exception

Posted: Mon Mar 11, 2013 2:13 am
by bsing
Ranorex Studio Version : 4.0.2.21666
.NET Version : 4.0.30319.296
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : English (Australia) (en-AU)
Current UI language : en-US
Running under WOW6432, processor architecture: AMD64
Working Set Memory : 705200kb
GC Heap Memory : 250146kb

Unhandled exception terminated the workbench
Exception thrown:
System.ComponentModel.Win32Exception (0x80004005): Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.ToolStripDropDown.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.ToolStripManager.ModalMenuFilter.PreFilterMessage(Message& m)
at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at ICSharpCode.SharpDevelop.Commands.StartWorkbenchCommand.Run(IList`1 fileList)
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)

---- 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:
ProjectService.OpenSolution: <null>
ProjectService.CurrentProject: <null>

All I did was load Ranorex Studio and run a test case. Am also getting blank screen from time to time along with slow performance.

The Test case I ran was created on Ranorex 3.x version. (Not sure if this is relevant)

Brad.

Re: Ranorex crashes with unhandled exception

Posted: Mon Mar 11, 2013 5:33 pm
by Support Team
Hello,

This exception usually means that the system is out of resources. When that exception occurred, were there a lot of system resources used (e.g. many programs open)? Or have you been using Ranorex Studio for a long time?

Could you please verify if all prerequisites of Ranorex are installed?

Could you please try to uninstall Ranorex completely, restart your computer and install it again with setup.exe?
Please download our current version of Ranorex from our archive.

Your tests created with Ranorex 3.x will be converted to Ranorex 4.x, if you open it with Ranorex 4.x at the first time.

Regards,
Markus (T)