LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Window Handles

Hello,

If a window handle becomes inactive or 'bad' (by closing the front panel for example) and I make a call to get a new handle will I be leaving holes in memory? Do I need to somehow close the open window handle before I close/hide the front panel?

Thanks,

Kevin
0 Kudos
Message 1 of 5
(3,226 Views)
If the window is a LabVIEW front panel, you don't have
to worry about it. To find the handle of a closed
window, you'll get 0. OS will take care of close
handle for you.

George Zou
http://gtoolbox.yeah.net
George Zou
Message 2 of 5
(3,226 Views)
Cool, Thanks georgezou! One less thing to worry about 🙂
0 Kudos
Message 3 of 5
(3,226 Views)
Hi,

In LV versions < 6.1 you do need to worry about opening window refs if you
dynamiclly change the title of the window...

Anyway, it is good practice to close references you open.

Regards,

Wiebe.
"georgezou" wrote in message
news:506500000005000000557F0000-1023576873000@exchange.ni.com...
> If the window is a LabVIEW front panel, you don't have
> to worry about it. To find the handle of a closed
> window, you'll get 0. OS will take care of close
> handle for you.
>
> George Zou
> http://gtoolbox.yeah.net
0 Kudos
Message 4 of 5
(3,226 Views)

"One less thing to worry about :-)"

 

Exactly mr. Kevin!     Fair thought I entirely divide it     8-)))

0 Kudos
Message 5 of 5
(2,573 Views)