04-16-2007 12:52 PM
04-17-2007 09:58 AM
04-18-2007 10:16 AM
04-18-2007 11:49 AM
Paul -
I tried TS 3.5 and NISE 2.1 using the SwitchExecutiveExample vitual device and it worked fine on my end. For your test, if you leave NISpy open while the execution completes and you close the execution window, do you get a niSE_CloseSession message? Also, can you run the attached sequence and show me your output, it also uses the SwitchExecutiveExample vitual device.
04-18-2007 02:44 PM
04-19-2007 12:28 AM
Hi,
The ini file you have attached dont appear to match the properties being loaded in the sequence file?
Regards
Ray Farmer
04-19-2007 07:51 AM
04-20-2007 12:36 PM
Paul -
It appears that the Property Loader step is failing to release a reference on the Locals container. The reason that this causes the problem is that the sequence lifetime feature attaches a special reference property to the Locals container to implement the auto-disconnect. When the sequence completes executing, the engine releases its reference to Locals, and if it is the last reference, Locals is deleted, which includes the sequence lifetime reference property. When this reference property is deleted, TestStand disconnects the route. Since the Property Loader, or anything else, fails to release a reference on Locals, the disconnect never occurs. In addition, when you shutdown TestStand and the Object Leak feature under the Station Options is enabled, TestStand reports that a Locals container was not released.
The Property Loader step type has two modes that it supports:
Now, if you use this second mode and the sequence you are targeting is the sequence that contains the Property Loader step, the step must loads limits into the current run-time copy that is running AND into future calls into the sequence. The leak appears to occur when you do this, and this is what the sequence is doing that you gave me.
So the immediate workaround is to either load limits into the run-time sequence only, or load limits into other sequence, but move the Property Loader step outside of a sequence that you are loading limits to.
I will continue to find the leak and I am going to suggest a design change to not rely on Locals being released for the sequence lifetime.