Page 1 of 1

Exception occurs when try to record new recording

Posted: Tue Nov 01, 2011 8:43 am
by syuhada

Code: Select all

Ranorex Studio Version : 2.3.9.11654
.NET Version         : 2.0.50727.4963
OS Version           : Microsoft Windows NT 6.1.7600.0
Current culture      : English (United States) (en-US)
Working Set Memory   : 1030492kb
GC Heap Memory       : 275606kb

Exception thrown:
System.OutOfMemoryException: Out of memory.
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit)
   at System.Windows.Forms.ControlPaint.DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft)
   at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
   at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
   at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
   at System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

---- 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: [RxLogViewer 2.3.9.11654], [RxObjectRepository 2.3.9.11654], [RxRecorder 2.3.9.11654], [Workflow Foundation Designer 2.3.9.11654], [ElementTree 2.3.9.11654]
Workbench.ActiveContent: Ranorex.Addins.RecorderPrimaryViewContent
ProjectService.OpenSolution: [Solution: FileName=T:\IntegrationTest\InfrastudioQA.BasicTest\InfrastudioQA.BasicTest.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: InfraStudioQA.BasicTest.NewProject]

I have a few of project in one solution. Then i try to add new project to my old solution file.and continue with recording. After record,this exception comes out. Any suggestion to handle this problem?

Thanks you,.

Re: Exception occurs when try to record new recording

Posted: Tue Nov 01, 2011 12:52 pm
by Support Team
As the error message says, your system is out of memory and Ranorex Studio can therefore not continue to operate as usual. Do you have a lot of recordings/repositories/files open in Ranorex Studio? Try freeing up some resources by closing some of the open recordings and files in Ranorex Studio.

Have you created a lot of image-based recordings with large screenshots? If so, please try to remove unused and large screenshots from your repositories. With Ranorex 3.X that can easily be done using the repository "Cleanup" functionality (see this chapter in the Ranorex User Guide).

Regards,
Alex
Ranorex Team

Re: Exception occurs when try to record new recording

Posted: Mon Nov 21, 2011 10:17 am
by syuhada
Hi Ranorex Team,

This problem solved by separating the large project into new solution. Is there any way to do repository Cleanup in Ranorex 2.X?

Thanks .

Re: Exception occurs when try to record new recording

Posted: Mon Nov 21, 2011 1:39 pm
by Support Team
Hi,
syuhada wrote: Is there any way to do repository Cleanup in Ranorex 2.X?
Sorry but this feature is not available in 2.x. This feature was added in 3.0.

Regards,
Peter
Ranorex Team