LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automation close (windows) does not work.

Automation close does not seem to clean up memory resulting in memory leaks. However references must be generated in order to use active X. How can I work around it without loading my processor?
---

25+ years long fan of LabVIEW. Move to Emerson looks to be for the better! See the last posts in subscription model thread.
0 Kudos
Message 1 of 7
(3,393 Views)
Did you try the labview Tree Control from the Dialog Control section? From your code, it seems a simple list will do the job.

-Joe
0 Kudos
Message 2 of 7
(3,393 Views)
Hello Joe,

I assume you refer to the tree control in Labview 7? I still use labview 6. I checked labview 7 for this:
- The tree function does not support images (icons) so it will not give the support to the user when browsing trough complex data structures (that's why I want to use the tree).
- The memory leak is still not solved and I expect major problems using activeX in any other case as well.
---

25+ years long fan of LabVIEW. Move to Emerson looks to be for the better! See the last posts in subscription model thread.
0 Kudos
Message 3 of 7
(3,393 Views)
My experience with using Excel ActiveX is that you need to be very careful whichorder you close references in. If you open a reference to any child object, these must be closed first before the tree itself can be closed.

Example in Excel: If I open Excel, then a workbook, thean a cell, then the formatting properties, I must close the references in the order formatting, cell, workbook, excel. Any other order will result in Excel remaining in memory.

Maybe this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 4 of 7
(3,393 Views)
Have you test your vi over long period of time? Did you see the memory increased steadly? Or does it go to a level and then drop back to a lower level?

From what I tested, it seems the memory does not increase all the time. The memory usage increased to a certain amount and then maintain that level (decrease and increase to that level again). Therefore I don't think there is a memory leak. The memory profile I did also does not indicate any memory leak.

-Joe
0 Kudos
Message 5 of 7
(3,393 Views)
Hi,

First, the LV7 tree does support custrom icons.

Your example causes memory leaks, because there is not a single reference it
the code that is closed! I'll send an example that in stead closes all the
references (like it is supposed to be).

Regards,

Wiebe.



"beuvink" wrote in message
news:506500000005000000E1540100-1075825507000@exchange.ni.com...
> Hello Joe,
>
> I assume you refer to the tree control in Labview 7? I still use
> labview 6. I checked labview 7 for this:
> - The tree function does not support images (icons) so it will not
> give the support to the user when browsing trough complex data
> structures (that's why I want to use the tree).
> - The memory leak is still not solved and I expect major problems
> usin
g activeX in any other case as well.
0 Kudos
Message 6 of 7
(3,393 Views)
This is how it's done...

Regards,

Wiebe.

"Wiebe@CARYA" wrote in message
news:40238864@newsgroups....
> Hi,
>
> First, the LV7 tree does support custrom icons.
>
> Your example causes memory leaks, because there is not a single reference
it
> the code that is closed! I'll send an example that in stead closes all the
> references (like it is supposed to be).
>
> Regards,
>
> Wiebe.
>
>
>
> "beuvink" wrote in message
> news:506500000005000000E1540100-1075825507000@exchange.ni.com...
> > Hello Joe,
> >
> > I assume you refer to the tree control in Labview 7? I still use
> > labview 6. I checked labview 7 for this:
> > - The tree function does not support images (icons) so it will not
> > give t
he support to the user when browsing trough complex data
> > structures (that's why I want to use the tree).
> > - The memory leak is still not solved and I expect major problems
> > using activeX in any other case as well.
>
>



[Attachment Two_Tree.vi, see below]
0 Kudos
Message 7 of 7
(3,393 Views)