LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access denied error for shared variables in application builder

I'm trying to use SVs in my app.  I build an exe using app builder.  When I run my VI from the project, it works fine.  When I run from the app exe, I get an access denied error (-2147024891) trying to write a value to a SV.  My SV lib is hosted on my computer (it's a local SVE).  I've disabled autodeploy and my VI calls deploy library on the lvlib file before I try to use it.  What could I be dong wrong?

 

0 Kudos
Message 1 of 4
(3,293 Views)

Hi knicewar!

 

Thank you for posting on the discussion forums!  What are you refering to when you say SVs?  Here is a KnowledgeBase article discussing the same error, although I am not sure it will be a direct application to your VI, since I am unsure what you mean by SV.  

 

Kristen H.

0 Kudos
Message 2 of 4
(3,268 Views)
SV =  Shared Variables  Smiley Wink
0 Kudos
Message 3 of 4
(3,260 Views)

Yes, sorry -- I should have defined my terms.  SV = shared variables.

I finally got this to work by deleting the write SV VI call and adding it back.

That shouldn't have fixed it but it did ...

 

0 Kudos
Message 4 of 4
(3,242 Views)