When executing a DataGridView table load with a Ranorex ToolStrip button, the following situation arises:
1) the button is pressed by
toolStrip = form.FindToolStrip("toolbar");
......
toolStrip.SelectPosition(1);
The table is loaded into the application. But the application crashes with
Unbehandelte Ausnahme: System.AccessViolationException: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei Ranorex.ToolStrip.RxToolStripSelectPosition(Int32 hWnd, Int32 position1, Int32 position2, Int32 position3, Int32 position4)
2) the button is clicked thru its location
..........
Mouse.Click(MouseButtonType.LeftButton, coord.X, coord.Y, 1, 100);
The table is loaded into the application, and can be accessed thru
FindChild and other methods, in the following.