Re: [Quickfix-developers] Attempted to read or write protectedmemory.
Brought to you by:
orenmnero
From: Djalma R. d. S. F. <drs...@bm...> - 2009-05-12 20:25:43
|
Hi Ariel, Yes, due to GC undeterministic cycles, the potential risk exists in many places, but because of the pinning performance penalty, better pinning only the functions that you see that fails in your application. The QF 1.12.4 already has the major required pinned objects, but my personal experience showed me that when the application has a higher volume of messages to process, some methods that take a relatively long time to run, like toString and addGroup, must all be pinned to avoid this error. Following is toString fixed code: String* ToString() { QF_STACK_TRY QuickFix::Message __pin * pThis = this; return new String( pThis->unmanaged().toString().c_str() ); QF_STACK_CATCH } SENDTO:qui...@li... -----Original Message----- From: Ariel Piñeiro [mailto:ari...@gm...] Sent: terça-feira, 12 de maio de 2009 12:25 To: Djalma Rosa dos Santos Filho Cc: qui...@li... Subject: Re: [Quickfix-developers] Attempted to read or write protectedmemory. QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Esta mensagem pode conter informação confidencial e/ou privilegiada. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não deverá utilizar, copiar, alterar, divulgar a informação nela contida ou tomar qualquer ação baseada nessas informações. Se você recebeu esta mensagem por engano, por favor avise imediatamente o remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, change, take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. |