LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why Loop execution of ActiveX method cause memory usage increase dramatically?

hi,all
I have tried a simple structure as follow:

ActiveX Control is TeeChart Control which is widely used in Delphi
env.
//////////////////////////////////////////////////////

ActiveX Control Ref |------------------------
| |
| ActiveX method |
| |
| |
| |
| i stop->@ |
-------------------------


//////////////////////////////////////////////////////
As the loop execut
ing, memory used by labview increase 4k/second
and several
minute later, it has used up 100M!!

I can confirm that ActiveX Control is Valid cause no problem occure
in VB or Delphi.

I google the web and found that many people have been puzzled by
such problems. Is it a bug in Labview?

Software :
LabView7.0
TeeChart ActiveX Control V5
WinXP

Hardware:
AMD Athlon
256M SDRAM

Any reply be appreciated!
0 Kudos
Message 1 of 2
(2,521 Views)
> ActiveX Control is TeeChart Control which is widely used in Delphi
> env.

I like the picture, but couldn't tell if your ActiveX method was
returning other refnum values which it allocated and expected LV to
Close. This is the most likely cause. So, I'd inspect each of the
return values, and if any of them are refnums or are being cast to a
refnum and used as one, be sure it gets Closed. Other things like
arrays should either be converted into LV arrays and released, or if
unwired, they should be released. If you have excluded the problem with
refnums, you might look at the unwired inputs and wire them temporarily
to the edge of a sequence or something just to see if the problem gets
better or worse. Please report anything that you find that
doesn't look
correct.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,521 Views)