{{Quickfixn}} error while re-run the initiator
Walter Robert Ditzler
ditwal001 at gmail.com
Wed Mar 6 07:58:45 PST 2013
Hi there,
I start the initiator:
***
_SessionSettings = new
SessionSettings(System.AppDomain.CurrentDomain.BaseDirectory +
"communicator.cfg");
_FileStoreFactory = new FileStoreFactory(_SessionSettings);
_Application = new Application();
_SocketInitiator = new SocketInitiator(_Application, _FileStoreFactory,
_SessionSettings);
_SocketInitiator.Start();
***
Then I stop it
***
_SocketInitiator.Stop(true);
***
When I want to start it again, without closing my app
***
_SocketInitiator.Start();
***
I get the following error
***
"The process cannot access the file
'C:\\DATA\\ABO_DEV\\VS2012\\sw\\output\\store\\FIX.4.2-DATA_FIX_xxx.header'
because it is being used by another process."
***
Is there a way to release that file from the memory? Which component do I
have to relase?
Thanks a lot,
Walter.
Ps: I tried:
***
if (_SocketInitiator == null)
return;
if (_SocketInitiator.IsLoggedOn())
_SocketInitiator.Stop(true);
if (_Application != null)
_Application = null;
if (_FileStoreFactory != null)
_FileStoreFactory = null;
***
More information about the Quickfixn
mailing list