02-02-2006 01:13 PM
02-02-2006 02:13 PM
I do not think there is any way around it for private assemblies.
One method I used to keep just one instance/reference was to establish the constructor node for the assembly in my top level vi, and pass the reference out so my lower level vi's can access the reference. Keep the reference open as needed and then close it in the top level vi before exiting the appication.
02-02-2006 03:24 PM
02-02-2006 03:34 PM
02-02-2006 04:24 PM
02-02-2006 04:29 PM
02-03-2006 09:47 AM - edited 02-03-2006 09:47 AM
Message Edited by Lycangeek on 02-03-2006 09:48 AM
02-07-2006 03:52 PM
02-07-2006 04:02 PM
02-09-2006 12:24 PM
Thanks Brian, that fixed our problem. Now we have another one... Our .NET objects are going to be called about every 10 minutes in one piece of test code. They work correctly when called every minute but when the time between calls increases to 10 minutes I get the following error:
Code: 1172, Source: Object '/cedb92b5_d31f_4bfe_8030_c76284d10fcc/dfgxshpaa2kx6+lrhxddlhod_18.rem' has been disconnected or does not exist at the server.
It seems like a reference that has been destroyed may be being pointed to? I have tried calling our methods two ways: calling a constructor and releasing each time, and calling the constructor and releasing only once at the beginning and end. Both ways caused the same error. Any suggestions?
Thanks.