[Quickfix-developers] Problem in Session Settings of initiator
Brought to you by:
orenmnero
|
From: Ambreen S. <sha...@ho...> - 2006-01-24 12:41:39
|
Sir,
As i was developing Fix Server (acceptor), that i completed.
Now I m developing Fix Client (initiator), a very stupid kind of thing
happening that when i use the tradeclient.dsw project , with the same config
file which i m using in my project.
my config file :
# default settings for sessions
[DEFAULT]
ConnectionType=initiator
HeartBtInt=300
FileStorePath=D:\FIX CLNT
FileLogPath=D:\FIX CLNT
StartTime=00:00:00
EndTime=00:00:00
UseDataDictionary=N
SocketConnectHost=132.147.193.222
SocketConnectPort=4545
# session definition
[SESSION]
BeginString=FIX.4.2
SenderCompID=MEM0040900
TargetCompID=SVR
while calling the same constructor of session settings
std::string fileName="test1.txt";
FIX::SessionSettings settings(fileName);
my project crashes , when i debug all the flow , i got that when the
debugging reaches at
void sessionsettings::set(....)
{
m_settings[ sessionID ] = settings;
}
then at this line i press F11 it goes to the following code, which is in
VC98/INCLUDE/Map
_Tref operator[](const key_type& _Kv)
{ iterator _P = insert(value_type(_Kv, _Ty())).first;
return ((*_P).second); }
Project crashes and give a message "Unhandled Exception 0xC0000005 : Access
voilation"
Pressing ok to this message box , the control goes to VC98/INCLUDE/XSTRING
file
and point to the following lines
void _Tidy(bool _Built = false)
{if (!_Built || _Ptr == 0)
;
----> else if (_Refcnt(_Ptr) == 0 || _Refcnt(_Ptr) == _FROZEN)
allocator.deallocate(_Ptr - 1, _Res + 2);
else
--_Refcnt(_Ptr);
_Ptr = 0, _Len = 0, _Res = 0; }
Plz help me , bcz of what this is happeniing , even my session settings are
going fine in acceptor and also in tradeclient.dsw.
what can be the matter .....?
waiting for ur reply.
with Regards.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
|