From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

References obtained in Load App.vi become invalid

Solved!
Go to solution

I'm using the same splash screen launching code that comes with the AF example projects, and I've noticed that if I obtain a reference in the Load App.vi (notifier, etc) that is bundled into my actor, it becomes invalid once the Splash Screen.vi finishes executing.

 

Does anyone know why this is happening?

 

Using LV2017

0 Kudos
Message 1 of 4
(2,953 Views)
Solution
Accepted by topic author colin.campbell

That is standard LabVIEW behavior for all references.   They are closed automatically when the VI hierarchy that create them stops.   Your launcher owns them, so they were closed when it stopped.

0 Kudos
Message 2 of 4
(2,945 Views)

Good to know, thanks

0 Kudos
Message 3 of 4
(2,929 Views)

Notice Powell said "hierarchy". If a reference is opened in a subVI, it is usable by its caller and all the other subVIs of that caller. The launcher uses a trick to create a separate running hierarchy, which is why the launcher can completely unload from memory and the rest of the app keep running.

0 Kudos
Message 4 of 4
(2,884 Views)