LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDA - Memory Leak LV 8.0.1 PDA using Slide Indicators

I originally encountered this error when, for no obivous reason, my application would crash after a certain amount of time.  I began to write a message on this board and while I was writing it, it occured to me that this crash certainly reaked of a memory leak.  I went back to my application and added in some memory monitoring displays and sure enough there was a leak.  After about 2 hours of removing everything else that I thought could have possibly caused the error, I removed the slide indicators and low and behold ... Memory Leak gone.  The Vi speaks for itself but I would really like some NI feedback on this.  I'm using LV PDA 8.0.1 under WM5.0 on an iPAQ hx2490.  The leak also occurs with a tank indicator, any slide indicator, a control slide changed to an indicator, and a dial indicator.  It does not, however, occur with the Meter indicator or the thermometer indicator.  Thanks in advance for the feedback NI.

If anyone else would like to verify that this is truly the case and I'm not just seeing things that would be great.

Greycat


Message 1 of 31
(6,756 Views)

Hi Greycat.

I havent seen this problem before. I am using evc 4 SP 4 and not the
SDK for windows mobil 5. My target runs Win CE5.

It sounds a little bit strange to me but I had this problem with picture controls.
After Investigation the NI LV routines I saw that adding new data to a exiting picture
costs the amount of memory that is added to the picture. It's not the way programmed
a that the memory is released after the manipulation of the picture.

I know this is a litte bit of topic 😉

With kind regards

Martin Kunze

KDI Digital Instrumentation.com
e-mail: martin.kunze@digital-instrumentation.com
Tel: +49 (0)441 9490852
0 Kudos
Message 2 of 31
(6,728 Views)
Should not the memory used by a variable be reused rather then using new memory everytime something is updated, like in a loop for instance? Or, if it does require the cost of having the new data and the most recent data in memory at the time of update, the portion that is no longer used should be released after processing is complete. This is usually standard procedure, so you don't run out memory.  The fact that this eventually leads to a crash indicates something is definately not right.  Did NI address your problem with the picture controls?  If so, what was thier response?  Did you find a solution to your problem?

Greycat

BTW - Thanks for the response
0 Kudos
Message 3 of 31
(6,718 Views)
Any comment from NI?

Greycat
0 Kudos
Message 4 of 31
(6,692 Views)


@Greycat wrote:
Any comment from NI?

Not likely during the 4th of July, and I wouldn't be surprised if some of the americans would take the rest of the week off as well.

___________________
Try to take over the world!
0 Kudos
Message 5 of 31
(6,685 Views)
Ah Yes ... thats right ... well maybe I'll bump it in a couple of days ...  Thanks tst

Greycat
0 Kudos
Message 6 of 31
(6,683 Views)
Greycat,
You couldn't be more right. I was able to duplicate exactly what you're seeing. There is certainly a memory leak when you have at least a slide indicator wired up on the block diagram. I'm going to file a bug report to R&D. THANK YOU so much for the code you posted that CLEARLY demonstrates the issue. I'm really sorry for the trouble and I very much appreciate the time you took to trouble shoot your code, find the problem, and even explore the problem. We really appreciate your patience.
 
 
Chris C
National Instruments
Applications Engineering
0 Kudos
Message 7 of 31
(6,635 Views)
Hi, Greycat.

I've never heard of anything like this, and I can't find any reference to it internally, either. I'll get a PDA and try this out and let you know what I find. In the meantime, has anybody else seen this behavior?

Whether or not it's reproducible, thanks for bringing it to our attention!
Sarah K.
Search PME
National Instruments
0 Kudos
Message 8 of 31
(6,632 Views)
Great ... I look forward to some resolution to this ... it makes running report screens in a loop a little difficult when you are restricted by what you can put on the front panel.  Thanks for looking into this and taking it to R&D.

Greycat
0 Kudos
Message 9 of 31
(6,622 Views)
0 Kudos
Message 10 of 31
(6,580 Views)