Re: [Quickfix-users] Debug logging.....
Brought to you by:
orenmnero
From: Djalma R. d. S. F. <drs...@gm...> - 2007-01-26 19:04:27
|
It is very easy to debug QF C++ code form C#. Just go to your project Properties / Debug and check "Enable unmanaged code debugging". Anyway, I think that you should first check the QF logging output (*.messages.log and *.event.log). If your app is generating a logout, there is a chance that it is sending a logout message, so try to find a message containing 35=3D5, most of the times there is a reason in the text field (t= ag 58). Sometimes a logout is also generated because of the LogonTimeout. On 1/25/07, Amir Farah <ami...@ya...> wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Is there a way to turn on lots of debug logging in > QuickFIX? specifically, session level logging that > might show me why my "acceptor" application generates > an unsolicited logout. > > thanks > > --- Oren Miller <or...@qu...> wrote: > > > QuickFIX Documentation: > > > http://www.quickfixengine.org/quickfix/doc/html/index.html > > QuickFIX Support: > > http://www.quickfixengine.org/services.html > > > > > Are you sure that the serializer isn't throwing an > > exception? > > > > --oren > > > > > Constructing an XmlSerializer object inside an > > onMessage() callback > > > causes QuickFIX to generate a "logout". > > > > > > > > > > > > Here is C# example code: > > > > > > > > > > > > class OrderSession : MessageCracker, Application > > > > > > { > > > > > > public void onCreate(SessionID sessID) {} > > =85=85.. onLogon(), > > > toAdmin(), etc, etc. > > > > > > > > > > > > public override void > > onMessage(QuickFix42.NewOrderSingle > > > fixOrder, SessionID session) > > > > > > { > > > > > > Object myobject =3D new Object(); > > > > > > XmlSerializer x =3D new > > XmlSerializer(typeof(Object)); // > > > causes logout > > > > > > } > > > > > > } > > > > > > > > > > > > Anyone else experienced this problem? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Amir > > > > > > > > > > > > > > > > > > > > > -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- > > > > > +-+-+-+- > > > This message is for the named person's use only. > > This communication > > > is for > > > informational purposes only and has been obtained > > from sources > > > believed to > > > be reliable, but it is not necessarily complete > > and its accuracy > > > cannot be > > > guaranteed. It is not intended as an offer or > > solicitation for the > > > purchase > > > or sale of any financial instrument or as an > > official confirmation > > > of any > > > transaction. Moreover, this material should not be > > construed to > > > contain any > > > recommendation regarding, or opinion concerning, > > any security. It may > > > contain confidential, proprietary or legally > > privileged > > > information. No > > > confidentiality or privilege is waived or lost by > > any > > > mistransmission. If > > > you receive this message in error, please > > immediately delete it and > > > all > > > copies of it from your system, destroy any hard > > copies of it and > > > notify the > > > sender. You must not, directly or indirectly, use, > > disclose, > > > distribute, > > > print, or copy any part of this message if you are > > not the intended > > > recipient. Any views expressed in this message > > are those of the > > > individual > > > sender, except where the message states otherwise > > and the sender is > > > authorized to state them to be the views of any > > such entity. > > > > > > Securities products and services provided to > > Canadian investors are > > > offered > > > by ITG Canada Corp. (member CIPF and IDA), an > > affiliate of Investment > > > Technology Group, Inc. > > > > > > ITG Inc. and/or its affiliates reserves the right > > to monitor and > > > archive > > > all electronic communications through its network. > > > > > > ITG Inc. Member NASD, SIPC > > > > > > -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- > > > > > +-+-+-+- > > > > > > ---------------------------------------------------------------------- > > > > > --- > > > Take Surveys. Earn Cash. Influence the Future of > > IT > > > Join SourceForge.net's Techsay panel and you'll > > get the chance to > > > share your > > > opinions on IT & business topics through brief > > surveys - and earn cash > > > http://www.techsay.com/default.php? > > > > > > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV_____________________________= ___ > > > > > _______________ > > > Quickfix-users mailing list > > > Qui...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get > > the chance to share your > > opinions on IT & business topics through brief > > surveys - and earn cash > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV> > _______________________________________________ > > Quickfix-users mailing list > > Qui...@li... > > > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > > > > > > _________________________________________________________________________= ___________ > > Don't get soaked. Take a quick peak at the forecast > with the Yahoo! Search weather shortcut. > http://tools.search.yahoo.com/shortcuts/#loc_weather > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > |