[Quickfix-users] RES: .NET Can not open body file ... unreleased resources
Brought to you by:
orenmnero
From: Alex <al...@ec...> - 2006-09-04 22:55:26
|
Greg, Have you found a solution for this problem? -- Alex Araujo Banif Banco de Investimento -----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 -- Gregory Chase Managing Partner Chase Capital Management, LLC |