05-15-2008 03:11 PM
05-16-2008 05:34 PM
Hi Bob,
Even if you use a property node to open a reference, it is still important to close all handles properly. Closing ActiveX references frees up memory, so you can potentially test the necessity of closing each reference by putting the code in a while loop and seeing if the required memory increases over time.
Regards,
Lauren
05-17-2008 02:22 PM
As mentioned, any reference should be closed, and in general, it's good practice to close each reference in the same place it was opened, so that you don't forget to close them.
For LabVIEW generated references, this actually matters less, because the compiler should be able to optimize those and release them automatically when they're no longer needed. For ActiveX references, however, you must do this yourself, because otherwise they will only be closed when the hierarchy goes idle. I suggest you read this for some more details. It talks about .NET, but I believe it should all apply to ActiveX as well.
05-26-2008 06:10 AM
05-27-2008 08:19 AM
05-29-2008 04:10 AM
05-29-2008 04:53 AM
Wiebe@CARYA wrote:
But even if there is no wire comming out of a reference property, you still need to close it.
05-29-2008 06:40 AM
05-29-2008 07:54 AM
05-30-2008 04:10 AM