There is next situation:
1. I connect to server
2. Start pumping mode
3. If I stop pumping mode I'll be able to start it againg, but only with that instance of object I used first time. So if I want to connect to other server or if I have distroyed the first instance of object I'll not be able to use pumping mode.
In your example 2 if I connect to one server then press button "disconnect" and then connect to other server I'll get error message "some error".
So, tell me please what should I do to make posibility in my program to change servers without restarting application?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
1. I connect to server
2. Start pumping mode
3. If I stop pumping mode I'll be able to start it againg, but only with that instance of object I used first time. So if I want to connect to other server or if I have distroyed the first instance of object I'll not be able to use pumping mode.
In your example 2 if I connect to one server then press button "disconnect" and then connect to other server I'll get error message "some error".
So, tell me please what should I do to make posibility in my program to change servers without restarting application?