Re: [Quickfix-users] Error while parsing settings file(config file) for quickfix session
Brought to you by:
orenmnero
From: Reema G. <ree...@tc...> - 2011-01-25 07:12:44
|
Documentation is not helping me as I have created settings file same as sample given. I have posted my settings file. Then to I am facing Problem. Kindly Help Thanks Reema Goenka Innovation Labs- Capital Markets Tata Consultancy Services Buzz:- 420 4535 Cell:- +91 9819016040 Mailto: ree...@tc... Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ From: Reema Goenka <ree...@tc...> To: qui...@li... Date: 01/25/2011 12:29 PM Subject: [Quickfix-users] Error while parsing settings file(config file) for quickfix session QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Hi, I am trying to create a quickfix session using a settings file. The code gets compiled properly but while executing it throws segmentation fault. After debugging using GDB found out that there is some error during parsing of settings file. Here is my settings file: # default settings for sessions [DEFAULT] ConnectionType=initiator ReconnectInterval=60 SenderCompID=T3PM [SESSION] BeginString=FIX.4.2 TargetCompID=INCA StartTime=12:30:00 EndTime=21:30:00 # overide default setting for RecconnectInterval ReconnectInterval=30 HeartBtInt=30 SocketConnectPort=6523 SocketConnectHost=172.29.19.197 Here is the debug output of GDB: #0 std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::lower_bound (this=0x4, __k=@0xbf9818c8) at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:466 #1 0x0031886d in std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::operator[] (this=0x4, __k=@0xbf9818c8) at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_map.h:576 #2 0x00315411 in FIX::Dictionary::setString (this=0x0, key=@0xbf9819b8, value=@0xbf9819b4) at Dictionary.cpp:137 #3 0x002eca2f in FIX::operator>> (stream=@0xbf981c18, s=@0xbf981b50) at Settings.cpp:55 #4 0x00330bc4 in FIX::operator>> (stream=@0xbf981c18, s=@0xbf982644) at SessionSettings.cpp:53 #5 0x00331def in SessionSettings (this=0xbf982644, file=@0xbf98275c) at SessionSettings.cpp:46 #6 0x080644a5 in main () Current language: auto; currently c++ (gdb) frame 2 #2 0x00315411 in FIX::Dictionary::setString (this=0x0, key=@0xbf9819b8, value=@0xbf9819b4) at Dictionary.cpp:137 137 m_data[ string_toUpper(key) ] = value; (gdbprint key $1 = (const string &) @0xbf9819b8: {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x992e12c "BeginString"}} (gdb) print value $2 = (const string &) @0xbf9819b4: {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x992e14c "FIX.4.2"}} (gdb) frame 1 #1 0x0031886d in std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::operator[] (this=0x4, __k=@0xbf9818c8) at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_map.h:576 576 { return _M_t.lower_bound(__x); } Thanks Reema Goenka Innovation Labs- Capital Markets Tata Consultancy Services Buzz:- 420 4535 Cell:- +91 9819016040 Mailto: ree...@tc... Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Quickfix-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-users =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you |