Re: [Quickfix-developers] FileLogFactory & FileStoreFactory
Brought to you by:
orenmnero
|
From: Djalma R. d. S. F. <drs...@gm...> - 2007-06-26 13:55:41
|
Hi Joe, I have the same problem because .NET does not have the deterministic destruction of objects. As a workaround I did the following in one of my applications: _storeFactory = null; _logFactory = null; System.GC.Collect(); // force garbage collection Actually, Microsoft solved this problem with C++/CLI. My suggestion is that maybe the QF wrapper could be re-written using CLI. Managed C++ is awful and is already deprecated. http://www.codeproject.com/managedcpp/cppclidtors.asp Djalma On 6/26/07, Joe Asta <JA...@ru...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: > http://www.quickfixengine.org/services.html > > > > > I am trying to move the files associated with the Log and Store when my > application is complete for the day. > > When I try to move the files, I get an error that the files are still in > use. I have stopped the SocketInitiator (socketInitiator.stop()) and also > disposed of the SocketInitiator object (socketInitiator.Dispose()). I do > not see similar dispose methods on FileLogFactory and FileStoreFactory. I > tried setting the objects to null, but to no avail. > > Is there a way to release the handles to these files from C#? > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |