NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug warning: References to PropertyObjects were not released properly.

Hi Everyone,
 
I made a custom operator interface in LabVIEW and any time I close the application I got the following warning:
 
"Debud warning: References to PropertyObjects were not released properly.
 
    Total number of objects: 84
    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: User
 
            Type Definition #2:
                Name: NI_UserCustomPrivileges

        And the following uncategoried objects:
            User
                Name: administrator"
 
It might something to do with my login method because I log the user in automatically:
Any idea why getting the message?
 
Other thing is that I could stop TestStand showing this messages (by unticking the boxes in debug options), but the question is: does it have any harmful affects on anything? So it might not wise just ignore the warning…
 
(I'm using LabVIEW 8.2 and TestStand 4.0)
 
Thanks
0 Kudos
Message 1 of 10
(5,941 Views)
Hello Attilaz,

have you released user object after using it in VI?
Regards
MY
0 Kudos
Message 2 of 10
(5,937 Views)

Hi MY,

Which user object should I release? How should I release TestStand objects in LabVIEW? I tried "UnloadAllModules" and "UnloadTypePaletteFiles" methods but still getting the message...

Attila

0 Kudos
Message 3 of 10
(5,933 Views)
Hi AttilaZ,
 
Are you closing the TS engine reference?  If you look at the simple OI that ships with TS you will notice at the end of the code the correct procedure for closing references.  They close the engine reference and then the curent VI reference and then they shut down LV.
 
Hope this helps some,
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 10
(5,921 Views)

Hi Jigg,

I used the Full-Featured OI as a base for my Custom OI, so the start-up and the shut-down process is the same, therefore I'm closing all the references, that's why I don't understand why I'm getting the message...

0 Kudos
Message 5 of 10
(5,903 Views)
Hi AttilaZ,

Have you had a look at the following knowledge base article:
LabVIEW UserInterface gives PropertyObject Warnings when using UIMessages

Let me know if that works out for you.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 6 of 10
(5,899 Views)
Hi Adnan,
 
As I mentioned, I used the Full-Featured OI as a base for my Custom OI, so I use the same Event Callbacks and the same VI to register them, furthermore I don't use any additional UIMessages just the standard ones used in the Full-Featured OI.
 
Attila
0 Kudos
Message 7 of 10
(5,895 Views)

Based on the three objects that you are seeing in the report, I suspect that the "administrator" user object is what has the extra reference and it is referencing the User type and the the User type is referencing the "NI_UserCustomPrivileges" type. In LabVIEW, if you ever get the reference to an object from one our TestStand's API calls, you must release the reference using the Close Reference function.

If you do not see this issue with the sequence editor, it is liklely some code in your OI. If you see this issue with the sequence editor, it is likely some code in a code module or sequence, such as a model or callback file.

So what code did you add that references a user object? If you login as a different user, does the named object change to that named object?

Scott Richardson
https://testeract.com
Message 8 of 10
(5,880 Views)
Thank you all guys!
 
I finally found the problem. One "Close Reference" was missing.
I posted a picture which shows what I missed.
 
Attila
Message 9 of 10
(5,854 Views)

Hello,

 

I have the same problem. I have modified the user interface (Configure statusbar.vi) and I get this error message. I want to display my own icons and message at the statusbar.

 

The vi is attached.

 

regards

 

Schwede

 

TS2010, LV2010

0 Kudos
Message 10 of 10
(5,072 Views)