Re: [Quickfix-developers] SocketInitiator prob
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-07-20 14:28:10
|
Well, that exception is thrown when it is trying to pull out a field=20 from the settings and it is unable to find it. Normally the message=20 would be Configuration failed: [name of key] not defined. But it looks=20= like it is trying to pull out a setting using an empty string as the=20 key. What version of QuickFIX are you using? --oren On Jul 20, 2004, at 1:43 AM, Jonas Bostrom wrote: > QuickFIX Documentation:=20 > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi > > I have been using VC++ ver of quickfix and that works fine.. > But now I want to implement a simple QuickFix Trading client in C#.=20 > Should not be a problem there.. But when I try to create the=20 > SocketInitiator object I get an exception : ""Configuration failed: =20= > not defined" > > Cant understand why... The SessionSettings object seems to find the=20 > cfg file. Simple code is like this: > > try > { > SessionSettings settings =3D new = SessionSettings("c:\\tradeclient.cfg"); > FileStoreFactory factory =3D new = FileStoreFactory(settings); > FileLogFactory logFactory =3D new = FileLogFactory("output"); > MessageFactory messageFactory =3D new = DefaultMessageFactory(); > m_application =3D new FixClientClass(); > m_initiator =3D new SocketInitiator( = m_application, factory,=20 > settings,logFactory, messageFactory); > m_initiator.start(); > > } > catch ( Exception e1 ) > { > Console.WriteLine( e1 ); > } > > and the tradeclient file loos like this: > [DEFAULT] > ConnectionType=3Dinitiator > HeartBtInt=3D30 > FileStorePath=3Dstore > StartTime=3D00:00:00 > EndTime=3D00:00:00 > UseDataDictionary=3DN > SocketConnectHost=3Dlocalhost > SocketConnectPort=3D5001 > > [SESSION] > BeginString=3DFIX.4.2 > SenderCompID=3DCL > TargetCompID=3DME > > The code is just in an Form class at the moment for testing, but that=20= > should not be a prob??? > > This is just driving me insane.. Otherwise QF works great in VC++..=20 > Thanx Oren... > > Cheers > > /Jonas > > _________________________________________________________________ > Bli f=F6r=E4lskad p=E5 MSN Dejting = http://www.msn.se/dejting/default.asp > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |