Can not intercept exception

Bug reports.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Can not intercept exception

Post by omayer » Tue May 08, 2012 7:51 pm

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
Tipu

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

Re: Can not intercept exception

Post by Support Team » Thu May 10, 2012 9:53 am

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

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Can not intercept exception

Post by omayer » Fri May 11, 2012 2:35 pm

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
Tipu