Error withToolStrip ?

Bug reports.
ranettix
Posts: 20
Joined: Mon Aug 28, 2006 12:07 pm

Error withToolStrip ?

Post by ranettix » Wed Aug 30, 2006 2:03 pm

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.

ranettix
Posts: 20
Joined: Mon Aug 28, 2006 12:07 pm

Post by ranettix » Tue Sep 05, 2006 10:30 am

When a Sleep of 2 or 3 seconds is added after:

toolStrip.SelectPosition(1);

the application hangs permanently (no error messages).

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Tue Sep 05, 2006 11:20 am

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