Forum Discussion
- AlexeyKSmartBear Alumni (Retired)
Hi,
FColCount is a private property of VCL grid controls. wRowCount is a TestComplete property that it provides for grid controls.
To get the value of wRowCount, TestComplete tries to read the value of FColCount and fails to do that.
Most likely, this happens because your application was not compiled as an Open Application (see item 2 in the error message you are getting). In this case, TestComplete cannot reach private properties.
Compile your application as Open and try again. You can find step-by-step compiling instructions in TestComplete help: http://smartbear.com/support/viewarticle/13169/. - jackson_1Frequent ContributorHi Alex,
i get the same error remains when i re-compiling the application with debug information. is there any thing can case this error?
Error: An error occurred.
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete.Technical information:
96 0x80020006 (Unknown name.) FColCount
Thanks, - AbramovaStaff
Hi,
Could you please specify the class of the grid control you are testing? The control's class name is specified by the object's WndClass property. You can view the value of this property in the Object Browser panel.
- jackson_1Frequent Contributorhi
the name of the Grid control is "TStringGrid" - AbramovaStaff
Hi,
Make sure that the control's class name is added to the Borland Controls | StringGrid group of your project's Object Mapping options.
Also, please check the version of the control. Currently, TestComplete provides extended support for VCL TStringGrid controls of Borland Delphi 7 and C++Builder 6, CodeGear RAD Studio 2007 and 2009; Embarcadero RAD Studio 2010 and XE; CLX TStringGrid controls of Borland Delphi 7 and C++Builder 6.
If the problem still occurs, could you please send us the application under test and the test project you are using via the Contact Support form?
- cosminsanduOccasional ContributorHi,
I am testing an application compiled with Delphi 2009 which is a an open application.
When I try to access some properties or methods of a TStringGrid controller (e.g wColumnCount/wRowCount,
wColumn/wValue, ClickCell ) I get the following error:Error: An error occurred.
Possible reasons:
1. The application stopped
responding.
2. The application was compiled
incorrectly (see the Open Applications topic in the help system).
3. An error occurred in
TestComplete.
Technical information:
96 0x80020006 (Unknown name.)
FColCount - AbramovaStaff
Hi,
If you are sure that the requirements described in the previous posts are met, but the problem still occurs, please send us the tested application that uses this control and the test project you are using via the Contact Support form? We will try to help you.
Related Content
- 5 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago