NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Releasing PropertyObject References Properly in TestStand NI

Solved!
Go to solution

Hello everyone,

I’m encountering an issue in TestStand NI with unreleased references to PropertyObjects, and I’m unsure how to resolve it properly. Here are the details of the issue:

When I run my sequence, I get a message indicating that references to PropertyObjects were not released correctly:

 

  • Total number of objects: 12
  • Number of top-level objects: 6

The report states that some top-level objects may be retained due to other top-level objects not being released properly. Specifically, there are six PropertyObjects that weren't released, which are listed as follows:

  1. PIA_RTDATA - Type: Array of Numbers
  2. PIA_SME - Type: Array of Numbers
  3. PIA_Telegram - Type: Array of Numbers
  4. PropertyObject with Value: 0 - Type: Number
  5. PIA_MS - Type: Number, Value: 0
  6. PIA_MS - Type: Number, Value: 0

How can I ensure these references are released correctly after use? Is there a specific approach or best practice in TestStand for releasing array and number PropertyObjects?

 

Any guidance on tracking and releasing PropertyObject references in TestStand would be greatly appreciated!

Thank you!

0 Kudos
Message 1 of 5
(1,328 Views)
Solution
Accepted by topic author Dinesh0310

Guess you are using the TestStand  API in code modules?

0 Kudos
Message 2 of 5
(1,312 Views)

Yes, I am using the TestStand API within code modules.

0 Kudos
Message 3 of 5
(1,299 Views)

You will need to review your code where these types of properties are being accessed to look for API that effectively gets a reference to a TestStand object using the TestStand API and does not release it when done using it. The TestStand help topic Programming with the TestStand API in Different Languages would be important to review, and it contains different content for each supported programming language. Here is another article that might be helpful: Programming with the TestStand API - NI.

 

What adapter are you using for these code modules?

Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 5
(1,269 Views)

I am using the C/C++ DLL Adapter

Screenshot 2024-11-11 080226.png

0 Kudos
Message 5 of 5
(1,217 Views)