12-07-2019 03:07 AM
Hello Developers,
i'm using a XML parser on labview. i respect NI recommandation that said i have to close a reference for all XML parser classes. But on my application i'm calling the VI that manage XML file in a loop, i'm remarking that all references are not be rested by close reference. references values are growing in time and my application return an error :
Error Code:
-2633; User-defined error code.
how can i reset all my references value to zero after every iteration ?
i notice that i should close all labview application and open it to reset my reference to zero !!
Solved! Go to Solution.
12-07-2019 03:38 AM
The node that returns Echantillon has an unclosed refnum output! That inside a loop surely will add some memory over time.
12-07-2019 06:27 AM
HI rolfk,
i close all refnum in my code!
i call this Vi in TestStand every 2 minutes to search a command that be sent to a UUT during 120 hours. It's a sequence test !
in my capture, you can see that i close all Refnum.
There is some solutions to avoid this add on memory.
12-07-2019 06:58 AM - edited 12-07-2019 07:08 AM
You attach a picture in your first post complaining about a memory leak. I look at it and point you to a refnum that is not getting closed. And then you respond that your code is completely different and you do everything according to the book?
1) The inlined picture is totally unreadable and fuzzy.
2) It has a terrible wiring that makes folliwing the refnums difficult even if it was clearly visible
3) If you want help with a VI attach the VI (in at least 2 LabVIEW versions earlier than the latest and greatest "Save for Previous Version"), and attach the one you claim to have a problem with not a picture of it and definitely not a picture of a different VI than what you say doesn't work.
Attached is your original picture with an orange circle where a refnum is not closed.
Trying to decipher your second fuzzy picture you have a node inside your loop that returns an array of refnms and you pick out the first and use it and then close it! What about the other refnums in that array???????
12-07-2019 08:15 AM
Hi Rolf,
excuse me for this error, in my first post i attached just a LabView Example!
i attached here my right VI that i use it to search in a XML file and return a table of informations!
i thank you for your help 🙂
the VI is Labview 2016 version !
12-07-2019 08:35 AM
I already mentioned in my previous post at the end where I suspected the problem to be (despite having trouble to see anything in that fuzzy picture).
Try to find the difference between this image and your VI.😀
12-07-2019 01:33 PM
Thank you very much Boss,
My VI is running, now after 4 hours, i don't have any error. and the memory is constant
thank you 🙂