03-16-2010 02:36 PM
Jeff Bohrer wrote:
For speed I did not use the close referance vi in my example. This leaves the referances in memory and is poor programming. When you open a refnum close it when your done-like the fridge door. Since I sent an example with poor practice- I brought attention to it
Of course NI can change thing and invalidate the following some time in the future...
You only have to close the dynamic refs. The static refs (refs who's value when type cast as a U32 are always the same) are handled by garbage collection. In fact all are closed by garbage collection, but the the dynamic ones will use memory for each ref and over time will manifest themselves as a memory leak.
But if not sure, close em.
Ben
03-16-2010 02:42 PM
Jeff - That did the trick. Thank you.
Ben - Thanks for trying.
Rick
03-16-2010 07:43 PM
as a total aside!
Ben you gotta get your precognision checked!