05-15-2006 04:27 PM - edited 05-15-2006 04:27 PM
Message Edited by jasonhill on 05-15-2006 04:27 PM
05-15-2006 06:58 PM
05-16-2006 07:54 AM
05-16-2006 08:02 AM
????
"Thanks, tst"
????
Ben
05-16-2006 08:05 AM
05-16-2006 11:06 AM
05-18-2006 10:01 AM
One other thing: You should close the Controls[ ] refnums. LabVIEW may not (probably doesn't) close them automatically when you close the VI refnum. If not, you'll have the functional equivalent of a memory leak. This kind of thing has happened to me in the past. It's good policy always to close dynamically generated refnums, such as Controls[ ], or Pages[ ] of a tab control, etc.
::Marty
05-18-2006 11:01 AM
05-18-2006 12:14 PM
jasonhill: Ah. Good idea [to close dynamically allocated refnums ASAP]. Not strictly necessary for the current version of LabView (see exhaustive discussion here). But who knows what future versions might hold.
Yes, I would rather close ASAP than rely on LabVIEW's garbage collection or auto-deallocation or whatever you want to call it. There may be situations where a few kbytes matters for a little while. I agree with the posters in the cited thread who say it's good style to close a reference that's no longer needed. Maybe that's overkill, but it's a small price to pay for piece of mind.
::Marty