Forum Discussion

jackson_1's avatar
jackson_1
Frequent Contributor
13 years ago

The wColumncount and wRowCount two properties of the object "TStringGrid" is shown the "an error occurred"

when i go through the

TStringGrid ccontrol object i get the unknown error(see attched picture) in

object browser.



i don't know why the 'wColumnCount' and 'wRowCount' properties show the error

message:



"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"







what's reason cased this error? my application conflict with TC?
  • AlexeyK's avatar
    AlexeyK
    SmartBear 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_1's avatar
    jackson_1
    Frequent Contributor
    Hi 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,



  • 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.

  • 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?

  • cosminsandu's avatar
    cosminsandu
    Occasional Contributor
    Hi,



    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

  • 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.