I am using a 3rd party COM control (see: 3rd Party COM not working with PB9 for more info) and when you set its .address property is connects to a controller at the specified IP address.
However in there documentation is says when the object reaches the end of its scope it will disconnect. Well there are cases where I may want to disconnect before reaching the end of the scope being that the object is a global.
So I was reading through PB9 documentation it says setting the object to NOTHING will handle that, or at least that's what I got from it. Well it sets the object to nothing, but it does not seem that the deconstructor for this object is executed at this time.
If I close the software I disconnect just fine from the controller. However if I set the object to NOTHING I still stay connected to the controller until I close the software.
Any ideas?
However in there documentation is says when the object reaches the end of its scope it will disconnect. Well there are cases where I may want to disconnect before reaching the end of the scope being that the object is a global.
So I was reading through PB9 documentation it says setting the object to NOTHING will handle that, or at least that's what I got from it. Well it sets the object to nothing, but it does not seem that the deconstructor for this object is executed at this time.
If I close the software I disconnect just fine from the controller. However if I set the object to NOTHING I still stay connected to the controller until I close the software.
Any ideas?
Comment