PDA

View Full Version : freeze after PATS connection lost


zweistein
11-11-2009, 03:20 AM
Hello,

this morning NT7b4 froze completely. It was necessary to kill the process from the task manager.

Unfortunately I have no trace information, only the log gives me:
9:55 Connection : PATSConnection Primary connection="Connected" price feed lost.

9.55 Stategy AndreasStrategy1 lost price connection but will keep running.

Any ideas?

Unfortuantely NT7 crashed before it could write a trace, so I do not know what happened. As far as I can judge my own indicators and strategies are stable and will not crash NT.

From my experience I would say it is a multithread race condition that locks Ninja. It is not an exception because that would be trapped easily.

Do you have any tool available (debug info or similar to trace the PATS connection internal handling of NT7?)

regards

NinjaTrader_Dierk
11-11-2009, 03:40 AM
Sorry I would not know what causes this. Unfortunately there is no debug tool available.

You could try to reproduce the issue by killing the Pats connection using tcpview.exe which is available here: http://technet.microsoft.com/en-us/sysinternals/default.aspx

zweistein
11-16-2009, 05:28 AM
today NT7 froze again with PATS disconnect

I have 2 IB and 1 PATS connection, and the PATS connection was red and NT7 was completely frozen.


I tried the TcpView to close the PATS connection (port 20000 on mine), but NT7 reconnects immediately.

How to block the TCp connection for a longer time? Router blocking port? Firewall?


regards

NinjaTrader_Dierk
11-16-2009, 06:10 AM
Sorry, I would not know. A network expert once told me that TcpView would be the appropriate means to simulate a network disconnect whereas a brute-force approach like pulling the cable would not.