Thanks Gordon!
I will take @btw advice as you say.?
Your opinion is exactly why I am in this problem:
?BTW there are no reason your connection broke unless TWS restart which is a different issue.
The fact that I need my program to go through the required TWS restart is what's got me struggling with this issue, from what you and Jurgen told me I think?
the best solution is to have my program disconnect right before TWS restarts and then proceeds to make a fresh new connection after TWS has restarted.?
Any advice on what the best approach on this would be ??