| View previous topic :: View next topic |
| Author |
Message |
Michael
Joined: 03 Jul 2007 Posts: 1
|
Posted: Tue Jul 03, 2007 2:25 am Post subject: System.AccessViolationException |
|
Hi,
I am getting a System.AccessViolation Exception when I load a particular form in my application. It is an MFC Based application and when I try to load the particular page or form I get the exception
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
After this the Test execution tool (we use NUnit) crashes.
The exception log gives the following details:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Ranorex.NativeMethods.RxFormGetFirstChild(Int32 handle)
at Ranorex.Form.GetControls() |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Tue Jul 03, 2007 8:17 am Post subject: |
|
Which Ranorex version do you use?
If V1.1.0 or earlier, then please update it to V1.2.0.
We fixed a similar bug in V1.2.0
You can read all controls in a form as follows (in V1.2.0):
Code: click into code to enlarge
foreach (Control control in form.Controls)
{
Console.WriteLine("Text= " + control.Text);
}
Jenö
Ranorex Team |
|
| Back to top |
|
 |
|