Ranorex

System.AccessViolationException

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
Michael



Joined: 03 Jul 2007
Posts: 1

PostPosted: 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
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: 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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum