I am trying to process time and sales data for the last 2 days. I receive a remoting exception after successfully processing numerous bars. The exception message is the subject of this thread. This only seems to occur when the market is open. I have yet to have this occur on Saturday when the futures market is closed. The following is some logging info:
1/24/2008 9:38:51.6406250 ESignalTimeAndSales::Start, num days 2
1/24/2008 9:49:44.0781250 ESignalTimeAndSales::eSignal_OnTimeSalesChanged, handle 1, ready
1/24/2008 9:49:44.0937500 ESignalTimeAndSales::ProcessTimeAndSales, doNotify True, numBars 604570, pre-loop
1/24/2008 9:49:44.1093750 ESignalTimeAndSales::ProcessTimeAndSales, first bartime 1/23/2008 12:00:35 AM
1/24/2008 9:52:15.6718750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:15.6718750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:15.6875000 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:15.6875000 HistoryBase::ManageresultSet, last index 13999 returned from events
NOTE: the previous log entry is the "return" from events that I fire. The bars of interest are packed in a result set, currently 1000.
1/24/2008 9:52:26.5312500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:26.5312500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:26.5312500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:26.5312500 HistoryBase::ManageresultSet, last index 14999 returned from events
1/24/2008 9:52:37.3750000 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:37.3906250 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:37.3906250 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:37.3906250 HistoryBase::ManageresultSet, last index 15999 returned from events
1/24/2008 9:52:48.3437500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:48.3437500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:48.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:48.3593750 HistoryBase::ManageresultSet, last index 16999 returned from events
<< more of the same >>
Then:
1/24/2008 9:54:17.2500000 HistoryBase::ManageresultSet, last index 24999 returned from events
1/24/2008 9:54:28.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:54:28.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:54:28.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:54:28.3593750 HistoryBase::ManageresultSet, last index 25999 returned from events
1/24/2008 9:54:34.2031250 Exception from ESignalTimeAndSales::ProcessTimeAndSales
QueryInterface for interface IESignal.IHooks failed.
Server stack trace:
at IESignal.HooksClass.get_GetTimeSalesBar(Int32 lHandle, Int32 lBarIndex)
at System.Runtime.Remoting.Messaging.StackBuilderSink .PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink .AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvok eHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invo ke(Object NotUsed, MessageData& msgData)
at CommonLib.GetTimeSalesDelegate.EndInvoke(IAsyncRes ult result)
at CommonLib.ESignalTimeAndSales.ProcessTimeAndSales( Boolean doNotify) in c:\documents and settings\russ\my documents\visual studio projects\fbi back test\commonlib\esignaltimeandsales.cs:line 119
at CommonLib.ESignalTimeAndSales.DoWork(Boolean doNotify) in c:\documents and settings\russ\my documents\visual studio projects\fbi back test\commonlib\esignaltimeandsales.cs:line 73
I am at a loss on what could be occurring. Has anyone seen this behavior? It never occurs at the same point during the same time frame. Ideas would be appreciated.
1/24/2008 9:38:51.6406250 ESignalTimeAndSales::Start, num days 2
1/24/2008 9:49:44.0781250 ESignalTimeAndSales::eSignal_OnTimeSalesChanged, handle 1, ready
1/24/2008 9:49:44.0937500 ESignalTimeAndSales::ProcessTimeAndSales, doNotify True, numBars 604570, pre-loop
1/24/2008 9:49:44.1093750 ESignalTimeAndSales::ProcessTimeAndSales, first bartime 1/23/2008 12:00:35 AM
1/24/2008 9:52:15.6718750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:15.6718750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:15.6875000 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:15.6875000 HistoryBase::ManageresultSet, last index 13999 returned from events
NOTE: the previous log entry is the "return" from events that I fire. The bars of interest are packed in a result set, currently 1000.
1/24/2008 9:52:26.5312500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:26.5312500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:26.5312500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:26.5312500 HistoryBase::ManageresultSet, last index 14999 returned from events
1/24/2008 9:52:37.3750000 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:37.3906250 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:37.3906250 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:37.3906250 HistoryBase::ManageresultSet, last index 15999 returned from events
1/24/2008 9:52:48.3437500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:52:48.3437500 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:52:48.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:52:48.3593750 HistoryBase::ManageresultSet, last index 16999 returned from events
<< more of the same >>
Then:
1/24/2008 9:54:17.2500000 HistoryBase::ManageresultSet, last index 24999 returned from events
1/24/2008 9:54:28.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent waiting lock
1/24/2008 9:54:28.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent received lock
1/24/2008 9:54:28.3593750 MainForm::ESignalHistoryQuote_HistoryQuoteChangedE vent end loop
1/24/2008 9:54:28.3593750 HistoryBase::ManageresultSet, last index 25999 returned from events
1/24/2008 9:54:34.2031250 Exception from ESignalTimeAndSales::ProcessTimeAndSales
QueryInterface for interface IESignal.IHooks failed.
Server stack trace:
at IESignal.HooksClass.get_GetTimeSalesBar(Int32 lHandle, Int32 lBarIndex)
at System.Runtime.Remoting.Messaging.StackBuilderSink .PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink .AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvok eHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invo ke(Object NotUsed, MessageData& msgData)
at CommonLib.GetTimeSalesDelegate.EndInvoke(IAsyncRes ult result)
at CommonLib.ESignalTimeAndSales.ProcessTimeAndSales( Boolean doNotify) in c:\documents and settings\russ\my documents\visual studio projects\fbi back test\commonlib\esignaltimeandsales.cs:line 119
at CommonLib.ESignalTimeAndSales.DoWork(Boolean doNotify) in c:\documents and settings\russ\my documents\visual studio projects\fbi back test\commonlib\esignaltimeandsales.cs:line 73
I am at a loss on what could be occurring. Has anyone seen this behavior? It never occurs at the same point during the same time frame. Ideas would be appreciated.
Comment