Page 1 of 1

Can not intercept exception

Posted: Tue May 08, 2012 7:51 pm
by omayer
I am getting follwing error when execute the test. ranroex 3.2.3

Can not intercept exception. Debugged program can not be continued and properties can not be evaluated.
System.StackOverflowException
at System.RuntimeType.CreateInstanceSlow
at System.RuntimeType.CreateInstanceDefaultCtor
at System.Activator.CreateInstance
at DefaultFactoryMethod.CreateFactory
at Ranorex.Core.Testing.TestSuiteModule.InitializeTestModuleInstance
at Ranorex.Core.Testing.TestSuiteModule.RunWithRepeats
at Ranorex.Core.Testing.TestSuiteModule.Run
at Ranorex.Core.Testing.TestCase.RunChildren
at Ranorex.Core.Testing.TestCase.Run
at Ranorex.Core.Testing.TestSuite.Run
at Ranorex.Core.Testing.TestSuiteRunner.RunInternal
at Ranorex.Core.Testing.TestSuiteRunner.Run
at Ranorex.Core.Testing.TestSuiteRunner.Run
at PeopleSoftSuite.Program.Main in c:\SVNviews\Automation\PeopleSoftSuite\Program.cs:line 34

Thank you,
Beginner

Re: Can not intercept exception

Posted: Thu May 10, 2012 9:53 am
by Support Team
A StackOverflowException usually occurs if there is an infinite recursion inside the code. If such an exception is thrown, the debugger will shut down and is unable to show any values or do anything else.

Can you please give us some more information when this exception occurs?
Does this happen with a specific module? Do you have any user code in this module that could cause this problem?

Regards,
Alex
Ranorex Team

Re: Can not intercept exception

Posted: Fri May 11, 2012 2:35 pm
by omayer
Thank you Alex, error returned in user code module when i call method inside the while loop. i will try call method outside the loop.
Beginner