Re: [Quickfix-users] .NET Can not open body file ... unreleased resources
Brought to you by:
orenmnero
From: Alex <al...@ec...> - 2006-09-04 22:50:43
|
Oren, months ago Francis Gingras send you a project demonstrating a release resource problem in QuickFix. Have you seen what's causing this? Alex -----Original Message----- Greg, This is what I use and it works fine with .NET 1.1 but with 2.0 you'll need the latest sources from CVS. socket.stop(); socket = null; GC.Collect(); GC.WaitForPendingFinalizers(); Francis -----Original Message----- From: Greg Chase [mailto:greg@...] Sent: Saturday, May 06, 2006 14:14 To: Francis Gingras Cc: quickfix-users@... Subject: Re: [Quickfix-users] Re: Re: .NET Can not open bpdy file ... unreleased resources I too am having trouble releasing resources. I'm using VS 2005, C# and .Net 2.0. How should one properly close down an initiator in .Net? The flow of my application is: -------------------------------------- settings = new SessionSettings(configFile); storeFactory = new FileStoreFactory(settings); logFactory = new FileLogFactory(settings); messageFactory = new DefaultMessageFactory(); initiator = new ThreadedSocketInitiator(this, storeFactory, settings, logFactory, messageFactory); ... initiator.start(); ... initiator.stop(); initiator = null; settings = null; storeFactory = null; logFactory = null; messageFactory = null; ---------------------------------------- At this point all of the four storage files are still locked (can't be opened in notepad). Forcing garbage collection doesn't help. Is anyone able to successfully release ThreadedSocketInitiator resources in .Net? Greg On 5/2/06, Francis Gingras <francis@...> wrote: > > > Tom, > > Just so you know, I sent a project to Oren that demonstrates the problem. > > > Francis -- Gregory Chase Managing Partner Chase Capital Management, LLC -- Alex Araujo Banif Banco de Investimento |