LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unallocated resource in FileBrowser instrument

Using FileBrowser custom control in CVI 2009SP1. I have found a problem in FileBrowser_GetSelectedFiles () function: in case of errors trapped by errChk and nullChk macros execution jumps to Error: label. The same applies in case no file is selected in the control.

In these cases the list created in the function is not disallocated and the IDE complains about this unallocated resource at program end.

 

As far as I can see fixing this issue implies:

  • Move ListDispose(list); instruction after Error: lable
  • In case numSelected < 1, jump to Error lable instead of issuing an immediatereturn

This problem is not mentioned in any Known Issues list from CVI2009 on.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 2
(2,755 Views)

You are absolutely right. I filed bug report 390072 for this issue. It will appear in the Known Issues List shortly. Thanks for pointing this out. Fortunately, we ship the source code, so you can apply this fix yourself in the meantime.

National Instruments
0 Kudos
Message 2 of 2
(2,724 Views)