Re: [Quickfix-developers] Memory Leaks Version 1.5
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-07-02 18:40:55
|
This is probably more to do with tradeclient than with QuickFIX itself. The tradeclient is aborted using ctrl-c which is forcing the application to exit without cleaning up the stack. I would guess these are the memory leaks you are seeing. If you modify tradeclient so that you it will terminate gracefully, you should see better results. There are only two places where memory leaks had been discovered. These were with repeating groups, which is the only class in the QF C++ library that does any heap allocation, and in the JNI wrapper which needs to do heap allocation + allocate JVM resources. --- Jon Dahl <jd...@Li...> wrote: > I have my own custom memory leak class and have > included it into the debug version of the > TradeClient app. > > When the app ends, there are a bunch of memory dumps > being reported in the Output screen in VC++6. > > Has anyone tested Quickfix for memory leaks or could > these just be false positives with the heavy > use of STL templates? > > Here is the code for my leaks class: > > //#define _CRTDBG_MAP_ALLOC > #include <stdlib.h> > #include <string.h> > #include <crtdbg.h> > > > #ifdef _DEBUG > #define new new(_NORMAL_BLOCK, THIS_FILE, __LINE__) > #endif > > > class FindMemoryLeaks > { > public: > > CrtMemState m_checkpoint; > > FindMemoryLeaks() > { > _CrtMemCheckpoint(&m_checkpoint); > > }; > > ~FindMemoryLeaks() > > { > _CrtMemState checkpoint; > > _CrtMemCheckpoint(&checkpoint); > > _CrtMemState diff; > > _CrtMemDifference(&diff, &m_checkpoint, > &checkpoint); > > _CrtMemDumpStatistics(&diff); > > _CrtMemDumpAllObjectsSince(&diff); > }; > > }; > > TIA, > > JD > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual > Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |