LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control reference is invalidated (Error 1055) only when running in built executable (LabVIEW 2012 Runtime Engine)

Solved!
Go to solution

I have an application that works normally when run in the LabVIEW 2012 development environment, but when run from a built executable, a reference to a tree control becomes invalidated after what seems to be a set amount of time, giving error 1055. I've disabled the subVI where this occurs then re-built, then it just occurs in another VI that uses the reference upstream. Tried Re-linking subVIs, uninstalled LabVIEW DSC module as someone suggested to another similar post, re-made the build spec from scratch, tried wiring up the tree control reference directly to the subVI's connector pane to be sure it's getting a valid reference, and still I get error 1055 when attempting to run.

 

I found a similar but slightly different post with no solution that might be useful for anyone attempting to look into this:

https://forums.ni.com/t5/LabVIEW/Control-reference-goes-invalid-in-built-applications-if-passed/td-p...

 

Any help would be appreciated

Ryan

Certified LabVIEW Architect

0 Kudos
Message 1 of 6
(2,369 Views)

My only guess is that one of the advanced build options doesn't like being set at its default value.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 6
(2,349 Views)

Bill,

 

I should have added that I've tried building with combinations of enabled and disabled debugging, LabVIEW 8.x file layout, and SSE2 optimization to no avail.

Ryan

Certified LabVIEW Architect

0 Kudos
Message 3 of 6
(2,344 Views)

@Ryan_Chamberland wrote:

Bill,

 

I should have added that I've tried building with combinations of enabled and disabled debugging, LabVIEW 8.x file layout, and SSE2 optimization to no avail.


I kind of figured you would have covered those bases, but I had to make sure.  How about the disconnecting typedef's and stuff like that?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(2,331 Views)
Solution
Accepted by topic author Ryan_Chamberland

Welp, turns out it was because there was a file not in the proper location relative to the built application, and due to improper error handling, this manifested itself as an invalid object error. Let this be a lesson to anyone who sees something similar and is banging their head over it

Ryan

Certified LabVIEW Architect

0 Kudos
Message 5 of 6
(2,329 Views)

@Ryan_Chamberland wrote:

Welp, turns out it was because there was a file not in the proper location relative to the built application, and due to improper error handling, this manifested itself as an invalid object error. Let this be a lesson to anyone who sees something similar and is banging their head over it


Ouch.  I was too afraid to suggest this.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 6
(2,308 Views)