Re: [Quickfix-developers] Attempted to read or write protected memory.This is often an indication t
Brought to you by:
orenmnero
From: BRACKLEY, A. G. <And...@rb...> - 2008-02-13 10:24:26
|
I'm fairly new to quickfix so could be wrong but I don't think getField(xxx) populates the field you pass it. Instead it returns the field details which you are interested in. The parameter is simply so that it can recognize the correct field type you are interested in. Therefore you probably need something like: QuickFix.Message qfmsg = qMessages.Dequeue() as QuickFix.Message; QuickFix.MsgType qfmsgtype_tag = new MsgType(); QuickFix.MsgType qfmsgtype qfmsgtype = qfmsg.getHeader().getField(qfmsgtype_tag); strMsgType = qfmsgtype.getValue(); Hope this helps -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Andrew Culross Sent: 12 February 2008 19:50 To: qui...@li... Subject: Re: [Quickfix-developers] Attempted to read or write protected memory.This is often an indication that other memory is corrupt. QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: www.rbs.com www.rbs.com/gbm www.rbsgc.com *********************************************************************************** ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |