11-08-2024 03:55 AM
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:
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:
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!
Solved! Go to Solution.
11-08-2024 04:53 AM
Guess you are using the TestStand API in code modules?
11-08-2024 06:20 AM
Yes, I am using the TestStand API within code modules.
11-08-2024 10:50 AM
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?
11-11-2024 01:09 AM
I am using the C/C++ DLL Adapter