07-30-2008 04:02 PM
07-31-2008 06:40 AM
07-31-2008 07:37 AM
08-18-2008 08:37 AM
Hi
I'm having a similar problem.
I have a 3D picture inside a while loop, and depending on what happens in the loop, objects in the picture are drawn witih different colours.
As the VI runs, the memory usage increases everytime the 3D picture is drawn.
Eventually, LabView reports that there is insufficient memory for it to complete the current operation, and the VI is halted.
If I run the exact same VI, but with the 3D picture removed, the memory usage does not increase.
This is quite a problem for me, as I need to leave the VI running for time-spans of a few days.
Is there something I have/have not included which I should/shouldn't have?
Or is this a bug? If so has anyone reported it yet??
Dan
08-18-2008 10:10 AM
08-19-2008 02:46 AM
Hi
I've run the Solar System example, and I agree it doesn't seem to have a leak.
I attach a demo I made of the graphic, which does seem to be increasing the memory usage with each time the picture is drawn.
It is essentially identical to the version in my full application (except that the booleans which determine the colour come from the VI rather than random numbers).
I am running LabView 8.5 in Windows XP, in a National Instruments PXI-1042Q with an NI-PXI-8106 Embedded Controller.
Thanks very much for youre time
Dan
08-19-2008 06:00 AM
You are doing "add Object"s in a loop. Of course it will leak. There has to be resource added each time you do this. Move your "add Object" outside the loop and then use the refrence inside the loop to update its properties/methods.
Ben
08-19-2008 08:09 AM
Ok
I'm have successfully moved all the add objects outside the loop as you suggested, however I am having difficulty getting the "color" property for the objects.
If I wire a reference from (for example) the create cydlinder VI, I can get the color property, however, when I run the application it haults saying the "object reference is invalid".
However, I cannot find any other terminals from which I can get the color property.
I'd appreciate it if you could tell me how to get this to work.
Thanks for your help
Dan
08-25-2008 07:30 PM