04-12-2006 02:10 AM
04-12-2006 09:09 AM
04-12-2006 09:17 AM - edited 04-12-2006 09:17 AM
I have no idea what VI you are refering to with GetdatatoModify.vi but I have a good guess what is your problem. LabVIEW deallocates objects automatically when the top level VI in whose hierarchy the object was created goes idle (ceases to run). What you are probably doing is opening the object reference in one VI writing it to a global and then doing a Read or write on that object reference from another VI. This will not work. You have to keep the VI that created the object alive somehow for the entire duration of your application.
@keithely wrote:
Hi,
I am facing a problem in GetdatatoModify.vi.I am calling
GetdatatoModify.vi in one of my application called write.vi.Once this
is called from my frontend application ,it is showing error that
"ERROR1 object say xxxxx is not valid".This object actually I am
getting from referance from create.vi.I verified referance getting from
create.vi and referance passed to GetdatatoModify.vi are same.
The interesting thing is if I have opened my write.vi in
background,everything will work properly.Then no object invalid problem
comes.
Message Edited by rolfk on 04-12-2006 04:18 PM
04-12-2006 09:28 AM