Correct way of unloading objects/functions to avoid connection issue
Posted: Fri Jan 22, 2021 2:22 pm
Hello sir,
Following the issue below that I believed to be the license issue:
It seems restart of MT may result in such connection issues. I then need to restart my TWS to resolve this.
I was told in email that it could be caused by unproper unload of the object/connections. But I did not experience the same issue in the old version.
Could you instruct how I should write my unload function to prevent such issue?
My current code:
Thanks.
Following the issue below that I believed to be the license issue:
It seems restart of MT may result in such connection issues. I then need to restart my TWS to resolve this.
I was told in email that it could be caused by unproper unload of the object/connections. But I did not experience the same issue in the old version.
Could you instruct how I should write my unload function to prevent such issue?
My current code:
Code: Select all
__ib.disconnect();
deinit_ib_trader;