I am trying to move the files associated with the Log and Store when my
application is complete for the day.
=20
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.
=20
Is there a way to release the handles to these files from C#?
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
>
I believe these files are created in the Session object. Destroying that
before you move the files will probably solve the problem.
HTH
Keith
Joe Asta 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
>
--
View this message in context: http://www.nabble.com/FileLogFactory---FileStoreFactory-tf3982389.html#a11305888
Sent from the QuickFIX - Dev mailing list archive at Nabble.com.
From: Andrew M. <an...@nm...> - 2007-06-26 14:34:35
Can the QF stuff easily be made serializable in java? I'm trying to save
my orders to disk and it looks like the QF objects in the orders don't
implement serializable. I'm really only after SessionID,
OrdStatus, UtcTimeStampField and ExecTransType.
Thanks,
Andrew