07-20-2017 06:12 AM
Hi folks,
I would like to suppress the error message about unreleased property objects which appears after my OI exits. Is there some way to shutdown the Teststand Application Manager silently?
I am aware that every property object should be released and I believe that some callback VIs or that I open some ref in some custom User Interface Message callback VIs which I don't close. Most of the code in my project is written by others and my mission is to create a "run-once or twice-show" to be able to explain the different stages of the software (it is only a software mock-up)
Is there some fast and effective method to find ActiveX references which are not closed?
Solved! Go to Solution.
07-20-2017 06:25 AM
These issues most often occur in custom UIs. Therefor, i assume that you are also using a custom UI. Is that correct?
If so, your focus of finding the reference is are primarily callback functions within the UI. Rule of thumb: Close ALL references you generate (or deviate) in your code; do NOT close the references you get directly as parameter from TS.
If you are not running a custom UI, the issue is most likely created by modules which are using the TS API (same rule of thumb applies of course).
07-20-2017 07:07 AM
Thanks a lot.
Yes I am using a custom UI. It is not entirely my code, but it is helpful to watch out only for references which have been created within the code of the UI instead of loogking if some references were Parameters to UI messages that I have overlooked.
This is new to me, because everyone I have asked before told me to delete _every_ reference which has been _used_ by my vi. Your answer makes things much clearer and much easier. Additionally it coincides with my observations.
But my initial main question was if there is a way to supress the message, that there where unproperly released Property objects. I am aware, that this is not nice and by not noticing that Teststand did not exit cleanly I can leave my system unstable. I need this for a presentation where under no circumstances any error window should appear.
07-20-2017 08:06 AM
I strongly recommend to identify the leak and fix it.
However, you can remove the dialog by un-checking "Report Object Leaks" the debug options in the station options preferences.
07-20-2017 09:03 AM
Thanks a lot, this is exectly what I weanted to know. Meanwhile I (hopefully) identified all open references. It was less work than I thought.
I will uncheck the "Report Object Leaks" in order to cause no confusion by an error message during my presentation if I overlooked something.