09-18-2020 01:36 PM
I have a VI where I want to create a new reference off of an existing reference, referring to the same object, so that I can close the new reference without closing the original reference. The original reference needs to outlive this VI. Is there a way to do this?
Solved! Go to Solution.
09-18-2020 02:13 PM - edited 09-18-2020 02:15 PM
I just solved it like so, but I'd like if there was a more generic way to get a new reference, because this doesn't really scale for different types.
09-18-2020 02:22 PM
Can you call ParentClass once before enter the loop, avoid pass Parser into the loop?
09-18-2020 03:21 PM
@zou wrote:
Can you call ParentClass once before enter the loop, avoid pass Parser into the loop?
Yes that's a good option, and then i would only call the loop if it has a parent. Also, I did change it to use recursion instead of a loop, but the question still remains. I guess I have a couple different options. Also, to simplify slightly I found there is an OpenClass method which keeps me from needing to use OpenLibrary with a cast to a class:
09-21-2020 03:36 AM
10-05-2020 03:12 PM
wiebe@CARYA wrote:
I'd avoid the problem altogether...
Nice use of pipelining. Definitely didn't think of this.