Re: [Quickfix-developers] Attempted to read or write protected memory.This is often an indication t
Brought to you by:
orenmnero
From: Andrew C. <And...@Tw...> - 2008-02-12 19:52:12
|
I think this might be a result of trying to access a message that had been disposed. Andrew Culross Direct +1 (914) 220-8849 http://www.twofour.com/emaildisclaimer.aspx -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Andrew Culross Sent: Tuesday, February 12, 2008 11:05 AM To: qui...@li... Subject: [Quickfix-developers] Attempted to read or write protected memory.This is often an indication that other memory is corrupt. I'm receiving the error message below - C# code looks something like this: QuickFix.Message qfmsg = qMessages.Dequeue() as QuickFix.Message; QuickFix.MsgType qfmsgtype = new MsgType(); qfmsg.getHeader().getField(qfmsgtype); strMsgType = qfmsgtype.getValue(); Extended message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Stack trace: at FIX.Message.toString(Message* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , Int32 , Int32 , Int32 ) at QuickFix.Message.ToString() at QuickFix.Message.getHeader() Any thoughts on what might be causing this? Andrew Culross Direct +1 (914) 220-8849 http://www.twofour.com/emaildisclaimer.aspx |