Page 1 of 1

Error withToolStrip ?

Posted: Wed Aug 30, 2006 2:03 pm
by ranettix
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.

Posted: Tue Sep 05, 2006 10:30 am
by ranettix
When a Sleep of 2 or 3 seconds is added after:

toolStrip.SelectPosition(1);

the application hangs permanently (no error messages).

Posted: Tue Sep 05, 2006 11:20 am
by webops
Thank you for the info.
I tried to reproduce this bug with a ToolStrip and a simple DataGridView, but it didn't happen.
Please send me a sample application and your test code, I would like to debug this bug and fix it for the next release 0.9.3.

Best Regards

Jenö Herget
Ranorex Team