Attempted to read or write protected memory.
Posted: Thu Jul 24, 2008 8:36 am
Hi
We are switching from 1.2 to 1.5 and have some problems :
while searching in a 'WindowsForms10.Window.8.app.0.2' 'oBottomDockBar' with
It happens very random (One Testrun in 60) and seldom at the same Testcase.
Are there known Issues, Modifications in this function or do you have another suggestion ?
best regards.andreas
We are switching from 1.2 to 1.5 and have some problems :
Code: Select all
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Ranorex.NativeMethods.RxElementGetChild(ElementStruct& element, Int32 index, ElementStruct& child)
at Ranorex.Element.GetChild(Int32 index)
at YouROpen.GuiTester.OutputWindow.DumpElementTree(Element element, String Compare, Int32 level, String& sMessage)
Code: Select all
private void DumpElementTree(Element element, string Compare, int level, ref string sMessage)
{
level++;
int childCount = element.ChildCount;
Logger.Log.Info("DumpElementTree - now in level : " + level ); //FIXME
for (int index = 0; index < childCount; index++)
{
Element child = element.GetChild(index);
if (child == null)
{
continue;
}
Logger.Log.Info("DumpElementTree - now in level : " + level + " child.Name: " + child.Name + " sMessage: " + sMessage); //FIXME
if (child.Name.Contains(Compare))
{
sMessage = child.Name.Replace(" " + Compare, "").Replace(" ", "");
}
DumpElementTree(child, Compare, level, ref sMessage);
}
}
Are there known Issues, Modifications in this function or do you have another suggestion ?
best regards.andreas