Start Record from Ranorex Windows Application

Ranorex Studio, Spy, Recorder, and Driver.
outcastkid
Posts: 1
Joined: Mon Jan 19, 2009 1:55 pm

Start Record from Ranorex Windows Application

Post by outcastkid » Mon Jan 19, 2009 2:05 pm

I record something and want to replay it with a button on a Ranorex Windows Application.

If I play my redordings with the Ranorex-Recorder everything worked fine but if I play it from within a Programm I get an Exception.

Do I miss something?
Ranorex Studio Version : 2.0.0.4977
.NET Version : 2.0.50727.3053
OS Version : Microsoft Windows NT 6.0.6001 Service Pack 1
Current culture : German (Germany) (de-DE)
Working Set Memory : 128408kb
GC Heap Memory : 24393kb

Exception thrown:
System.FormatException: Der Index, basierend auf 0 (null), muss größer als oder gleich Null sein, und kleiner als die Größe der Argumentenliste.
bei System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
bei Debugger.Thread.GetStackTrace(String formatSymbols, String formatNoSymbols)
bei ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_ExceptionThrown(Object sender, ExceptionEventArgs e)
bei Debugger.Process.OnExceptionThrown(ExceptionEventArgs e)
bei Debugger.Process.RaisePausedEvents()
bei Debugger.Interop.MTA2STA.<>c__DisplayClass3.<EnqueueCall>b__0()
bei Debugger.Interop.MTA2STA.PerformCall()
bei Debugger.Interop.MTA2STA.PerformAllCalls()
bei System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
bei System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
bei System.Threading.ExecutionContext.runTryCode(Object userData)
bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
bei System.Windows.Forms.Control.InvokeMarshaledCallbacks()

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Die Sequenz enthält keine Elemente.
bei System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
bei ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
bei ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [TextEditorDisplayBindingWrapper c:\Users\outcast kid\Documents\RanorexStudio Projects\testie\testie\Recording1.Repository.cs]
ProjectService.OpenSolution: [Solution: FileName=C:\Users\outcast kid\Documents\RanorexStudio Projects\testie\testie.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: testie]

darkness
Posts: 7
Joined: Mon Dec 15, 2008 9:56 am

Re: Start Record from Ranorex Windows Application

Post by darkness » Mon Jan 19, 2009 2:58 pm

if your're lucky you just need to call

Code: Select all

PluginManager.Instance.LoadDefaultPlugins();
before calling the recorded action (that was my fault sometimes)

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

Post by Support Team » Mon Jan 19, 2009 6:27 pm

If calling LoadDefaultPlugins doesn't help, please try downloading the newest Ranorex 2.0 version (Ranorex 2.0 RC1) from our homepage.

If that doesn't fix the problem, either, could you please send a screenshot of the exception and the project that causes the exception to support_at_ranorex.com? Thx!

Regards,
Alex
Ranorex Support Team