Sorry to hear that. First I think you are looking at two different issues in your two examples.
In your simplified example you are repeatedly opening and closing VISA sessions in a loop. This not a bug (I believe). LV will allocate resources when you do your open that are not free'd up until LV exits. This has been an established behaviour since LV 6.1 (or may earler). When LV exists, these resource will be returned to the OS. In the first example you provided, you may indeed have found a bug! I would recomend that you frist ensure that you have the latest and greatest version of VISA loaded. If this does not correct the problem, you should contact NI support directly to report this issue. Ben
