Re: [Quickfix-users] Memory Leak - Please help.
Brought to you by:
orenmnero
From: Malinka R. <ael...@gm...> - 2008-04-03 23:23:46
|
yes, but you don't know when the garbage collector will do it's job and therefore there is a memory leak until it does happen, which as i've noticed if you are actually using the system for anything serious it will actually cause the system to run out of memory and crash your programs before it actually does collect the garbage, so yes it is good form to call dispose and yes it will take care of your memory problem, and yes the garbage collector should take care of that however it like most other things isn't the final solution and needs a little help and no this is not a quickfix problem, but a Managed C++ problem in C# ;) On Thu, Apr 3, 2008 at 4:31 PM, James P Michels III < jmi...@bl...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > -"We don't know when you are done with the message" > > Isn't the whole point of a garbage collected runtime to deal with this > problem? > > OK, I get that its good form to call Dispose, but why is this required? > > Doesn't Dispose get called when these objects are being garbage collected? > > or...@qu... wrote: > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > ------------------------------ > > We don't know when you are done with the message. You need to call > Dispose when you are finished with it. > > --oren > > -------- Original Message -------- > Subject: [Quickfix-users] Memory Leak - Please help. > From: "Sam Smith" <sa...@if...> <sa...@if...> > Date: Thu, March 20, 2008 6:37 am > To: <qui...@li...> > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > ------------------------------ > Hi, > > I am reasonably new to QuickFix and I have a problem. I have been asked to > look at part of a C# application using the .Net QuickFixEngine library. > > My problem is that the application seems to have substantial memory leak. > > Looking at the application using a .Net memory profiler, it looks like a > lot of QuickFix objects are hanging around in memory. It looks like the .Net > code is releasing all references to the objects, but some unmanaged code is > retaining a reference. > > Am I missing something obvious? Should the developers who wrote it have > been calling a .Dispose method or delete or something on these objects? One > major source of the leak seems to come from messages that are created by the > unmanaged C++ library and passed into our managed code. When our managed > code finishes with them they do not seem to get cleaned up. > > Please help. > > *Sam Smith* > Developer / Infrastructure > Intelligent Financial Systems > 110 St Martin's Lane > London > WC2N 4BA > > Telephone 020 7379 7328 > Fax 020 7379 7329 > > ------------------------------ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------ > _______________________________________________ > Quickfix-users mailing list > Qui...@li... <#119160025b7bb85b_Compose> > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008.http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------ > > _______________________________________________ > Quickfix-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/quickfix-users > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > |