01-28-2019 07:30 AM
Hi all,
I was trying to fix the obvious memory leak from figure one which came from creating objects in the while loop however when I tried the fix in figure two I am now getting error 1055 object reference is invalid... can anyone point out what could fix this? I've also tried using shift registers as shown in figure three but this gave the same error 1055 as figure two. Any help would be massively appreciated.
figure one: memory leak creating infinite objects
figure two: error 1055
figure three: shift registers
01-28-2019 09:19 AM
show your code, especially subvI in loop.
In figure 2 you've closed all references. Why?
I think you do the same in your subVI
01-28-2019 10:43 AM
Couple things, first off the sequence structure is unnecessary- think dataflow.
Second, Artem is right, the object reference is invalid because you close the object reference after its first use. Without code to test it's hard to say but putting Close Reference outside of the while loop, only used after you're done, might fix things.
01-28-2019 10:46 AM
Hi,
I tried the close reference as an attempt to a solution which I found after some Googling.
I didn't get the 1055 error before trying to move the create object parts outside the loop.
Honestly, I'm not really sure at this point as I'm new to using objects in LabVIEW.
The subVI. the other SubVI in this one is just the rotate and translation included in LabVIEW Robotics
01-28-2019
10:59 AM
- last edited on
05-09-2025
06:29 PM
by
Content Cleaner
Again, we cannot debug pictures. please attach the actual VI.
(Also be careful with naming. You are talking about "3D objects". The term "object" is typically used for something else)
01-28-2019 11:20 AM
Sorry, this folder has the entire project - "3D picture test" is the current trial solution and backup five is the version with the memory leak.
01-29-2019 05:08 AM
I didn't get error/memory leak in 3D picture test.
You only need timeout in loop.
01-29-2019 11:57 AM - edited 01-29-2019 11:59 AM
@Artem.SPb wrote:You only need timeout in loop.
What would be the logic behind this? What is a "timeout" and where?
(A delay would simply push a memory leak to a later time, without fixing the underlying issue.)