07-25-2011 08:58 AM
I am creating object referrences for both Active X and .NET components. These objects must be used throughout multiple sequences within the mainsequence. I am looking at relaesing the objects at the end of the mainsequence, but so far, all I can currently do is use an expression statement and state
objectreferrence = ""
Is there a better way to do this. I have tried setting equal to null, but that is coming back as invalid.
07-25-2011 09:00 AM - edited 07-25-2011 09:02 AM
Set to object to Nothing
eg
Locals.SeqObj = Nothing
07-25-2011 09:07 AM
In addition to Rays correct answer, you should make sure that the objects do not provide a dedicated shutdown routine.
Simply setting the reference to Nothing will free tha handle, but this could lead to object leaks.
hope this helps,
Norbert
07-25-2011 09:14 AM
The handle is one concern to make sure that the object can be created and used again. Also, the leaks are my biggest concern.