PDA

View Full Version : Memory Leaks



KRinn
April 14, 2008, 09:08:06
Hello, we are getting lots of memory leaks when shutting down our application (VC++ 8). They look like:

...
c:\csource\ic30\core\tisudshl\membuffer.cpp(84) : {1762} normal block at 0x02906A00, 80 bytes long.
Data: < ( P > 18 28 90 02 00 00 00 00 50 00 B5 04 00 00 00 00
c:\csource\ic30\core\tisudshl\membuffercollection. cpp(65) : {1761} normal block at 0x02902358, 8 bytes long.
Data: <8a j > 38 61 94 00 00 6A 90 02
c:\csource\ic30\core\dshowlibgeneral\smart_ptr.h(4 0) : {1759} normal block at 0x02900A40, 4 bytes long.
Data: < > 01 00 00 00
c:\csource\ic30\core\tisudshl\membuffercollection. cpp(148) : {1758} normal block at 0x02902598, 56 bytes long.
Data: <Y800 8 q> 59 38 30 30 00 00 10 00 80 00 00 AA 00 38 9B 71
c:\csource\ic30\core\tisudshl\membuffercollection. cpp(127) : {1757} normal block at 0x02902818, 8 bytes long.
Data: < | % > EC 7C 94 00 98 25 90 02
c:\csource\ic30\core\tisudshl\framehandlersinkcb.c pp(504) : {1756} normal block at 0x022AB548, 12 bytes long.
Data: <hf ( > 68 66 90 02 18 28 90 02 00 00 00 00
...

We call m_Grabber.stopLive() and m_Grabber.removeListener(this) in the destructor of the GrabberListener-derived class, and DShowLib::ExitLibrary() on exit of the application. Is there anything more we have to do?


Thanks
KRinn

Stefan Geissler
April 14, 2008, 09:22:48
Hello KRinn,

At least you can not do more, than you already did. Would it be possible to send me a project, that reproduces this problem to support@imagingcontrol.com, thus I can debug it and check how to avoid the memory leak?

KRinn
April 14, 2008, 10:50:59
Calling the destructor of the GrabberListener-derived class did not work. Fixed the problem - everything OK.

KRinn