07-09-2009 09:47 AM
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.
07-21-2009 03:51 PM
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.