Re: [Quickfix-users] Issue on message.get
Brought to you by:
orenmnero
From: Malinka R. <ael...@gm...> - 2008-02-21 17:53:16
|
you can either read the other message fields to test if it should have a last quantity (better) or you can try catch it like so try { *message.get(**aLastQty);* } catch(FieldNotFound) { } On Wed, Feb 20, 2008 at 9:32 AM, Francesco Pispola <fpi...@gm...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hi everybody, > first of all, thank you for your great job. > I'm using quickfix to build a simple application and I'm experiencing this > issue: > > when an execution report arrives, I crack the message and I do this: * > > FIX::LastQty aLastQty; > message.get(**aLastQty); > > *if this field is not in the message, I receive this exception: > Conditionally Required Field Missing (32). > How can I avoid this? Can I test in any way the result of get method? > > Hope I was clear, thank you for your attention. > Francesco > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > |