When my RTD server starts, it goes through the ServerStart and ConnectData calls, then just when the data starts arriving, it gets a call to ServerTerminate which shuts everything down. I have added a stack trace dump but that's not telling me anything useful:
public void ServerTerminate()
{
Logger.DebugLog("TRACE: ServerTerminate {0}", new System.Diagnostics.StackTrace(true));
timer_.Dispose();
DataSource.Shutdown();
topicIdMap_.Clear();
fieldLookup_.Clear();
}
2014-09-18 11:22:12Z TRACE: ServerTerminate at Mike.RtdServer.ServerTerminate() in c:\Code\Mike\RtdServer.cs:line 347
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
What could cause this call to ServerTerminate ?