[Quickfix-developers] Requesting Previous Messages
Brought to you by:
orenmnero
From: Karl S. <ka...@gm...> - 2008-07-07 13:26:04
|
I am trying to use the store attached to a particular session in order to request historical messages by the sequence number. I am running the C# wrapper to quickfix and am requesting the previous message with the following code: int seqNum = (int)lvFixMessages.SelectedItems[0].Tag; ArrayList msgList = new ArrayList(); FixApplication.Session.getStore().get(seqNum, seqNum, msgList); if(msgList.Count > 0) { QuickFix.Message msg = new Message((string)msgList[0]); } I may be running into a multi-threaded issue here, as this is called from the user interface thread, but I was hoping that read operations were threadsafe. The problem is characterisitic of multi-threading issues, sometimes it works just fine. Other times I get an AccessViolationException "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Or sometimes I also get "Runtime Error! R6025 - pure virtual function call" Please let me know if there is a threadsafe way to access the filestore. I am using a filestore and a single initiator, with a standard Application. Thanks, -Karl |