LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

config data registry.vi

Hi All!
 
I seem to have a large memory leak in Config Data Registry.vi. When I run the profile tool with the two memory check boxes selected this vi seems to take up more memory every time. In the last hour and a half it jumped from just over 500K to almost 2MB (1898K). Does anyone have any idea whats going on here? or even what this VI does?
 
Thanks,
Matt
0 Kudos
Message 1 of 5
(2,985 Views)
The obvious question is: Do you add data in the Config File?
All data of the config file is kept in memory until you close it. The file itself is written on close only so if you continually append data on a config file, it is stored in memory until you close the file.


LabVIEW, C'est LabVIEW

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

Yes I am writing alot of data to a config file (perhaps I over did it some) but I make sure that I always close the referance as soon as I finish reading or writing the data so to make sure the data is saved and there the next time I read it.

Matt

0 Kudos
Message 3 of 5
(2,962 Views)

Hi Matt,

Could you please post a stripped-down version of your code that duplicates the problem? We will be happy to examine it for you. By the way, what is your LV version and what is your OS?

Best regards,

Kalin T.
0 Kudos
Message 4 of 5
(2,953 Views)
If the memory used by the Registry VI doesn't lower after you close the config file then there may be a memory leak. However, memory groth it is most likely caused by your data.


LabVIEW, C'est LabVIEW

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