1
VB and the development of wizards / How to stop garbage collection?
« on: July 29, 2009, 12:44:18 PM »
Is there any way to preserve objects / variables in separate scripts contained within mach3 buttons after termination of the script?
I've created an mscomm object in a button script to open a serial port, but it kills the object when the script terminates, requiring repetitive recreation of this object and repetitive opening/closing of the port as a result.
What is the typical method for sharing or preserving variable/object information between independant scripts? Is it possible?
I've created an mscomm object in a button script to open a serial port, but it kills the object when the script terminates, requiring repetitive recreation of this object and repetitive opening/closing of the port as a result.
What is the typical method for sharing or preserving variable/object information between independant scripts? Is it possible?