NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

References to PropertyObjects were not released properly.

After I run my sequences through the TestExec (i.e. not the TestStand Editor) I get the following error box when I close the TestExec software:

 

References to PropertyObjects were not released properly.
    Total number of objects: 65
    Number of top-level objects: 3

    Note: Some top-level objects may be included if they are referenced by
    an incorrectly released top-level object. For example, an unreleased
    SequenceContext object references a SequenceFile object.

    The following top-level objects were not released:

        Type Definitions [2 object(s) not released]
            Type Definition #1:
                Name: UUTData

            Type Definition #2:
                Name: Measurement


        PropertyObjects [1 object(s) not released]
            PropertyObject #1:
                Name: Data
                Type: Obj

 

I have no idea what Data is, but UUTData and Measurement are StationGlobal Containers types.  How do I "release" a Container type?

 

Note: I did a search on the above, but all the posts seem to releate to LabView.  My project does not use LabView, but it does use CVI DLL's.

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
0 Kudos
Message 1 of 2
(3,744 Views)

Hi Christopher,

 

Have you made modifications to the default TestExec User Interface to directly access StationGlobals?

 

In CVI, any TestStand reference that is an output of a function call must eventually be released using CA_DiscardObjHandle().

 

Take for example the following code:

 

 

     TSObj_PropertyObject stationGlobals;


     TS_EngineGetGlobals (myEngine, NULL, &stationGlobals);


     CA_DiscardObjHandle(stationGlobals);

 

 

Because the variable, stationGlobals, contains a TestStand reference that was returned from the TS_EngineGetGlobals() function, we must call CA_DiscardObjHandle(stationGlobals) to properly release the reference.

Manooch H.
National Instruments
Message 2 of 2
(3,684 Views)