PDA

View Full Version : what the reasor of Roi filter cause memory leaks?



shengboliu
January 21, 2014, 13:06:07
I use the DFK 31BF03, when i use the ROi filter like this :

m_pRoiFilter = FilterLoader::createFilter("ROI");
rlt = m_pGrabber->setDeviceFrameFilters(m_pRoiFilter.get());

in the debug, the output window will show line this:
MsgTest.exe(tid 1db8) 6366 : *** This filter is accepting an output media type
MsgTest.exe(tid 1db8) 6366 : that it can't currently transform to. I hope
MsgTest.exe(tid 1db8) 6367 : it's smart enough to reconnect its input.
and
Detected memory leaks!
Dumping objects ->
{1147} normal block at 0x0260F0F8, 32 bytes long.
Data: <B a y e r t o > 42 00 61 00 79 00 65 00 72 00 20 00 74 00 6F 00
{1146} normal block at 0x0260F080, 56 bytes long.
Data: < ` ` ` > 88 EB 60 02 00 EC 60 02 88 EB 60 02 00 00 00 00
{1143} normal block at 0x0260EFA0, 4 bytes long.
Data: < > 01 00 00 00
{1141} normal block at 0x0260EE88, 4 bytes long.
Data: < T> E4 C4 16 54
{1140} normal block at 0x0260EEC8, 56 bytes long.
Data: < ` 8 ` ` > 88 EB 60 02 38 ED 60 02 88 EB 60 02 00 00 00 00
{1138} normal block at 0x0260ECF8, 4 bytes long.
Data: < > 01 00 00 00
{1137} normal block at 0x0260ECB8, 4 bytes long.
Data: < T> D4 C4 16 54
{1136} normal block at 0x0260EE10, 56 bytes long.
Data: < ` ` 8 ` > 00 EC 60 02 88 EB 60 02 38 ED 60 02 00 00 00 00
{1134} normal block at 0x0260EC78, 4 bytes long.
Data: < > 01 00 00 00
{1133} normal block at 0x0260E410, 4 bytes long.
Data: < T> C4 C4 16 54
{1132} normal block at 0x0260EDB0, 32 bytes long.
Data: <R o t a t e F > 52 00 6F 00 74 00 61 00 74 00 65 00 20 00 46 00
{1131} normal block at 0x0260ED38, 56 bytes long.
Data: < ` ` ` > C8 EE 60 02 10 EE 60 02 88 EB 60 02 00 00 00 00
{1128} normal block at 0x0260E848, 4 bytes long.
Data: < > 01 00 00 00
{1126} normal block at 0x026098C8, 4 bytes long.
Data: < T> B4 C4 16 54
{1125} normal block at 0x0260EC00, 56 bytes long.
Data: < ` ` ` > 80 F0 60 02 10 EE 60 02 88 EB 60 02 00 00 00 00
{1123} normal block at 0x0260BC40, 4 bytes long.
Data: < > 01 00 00 00
{1122} normal block at 0x0260E8D8, 4 bytes long.
Data: < T> A4 C4 16 54
{1121} normal block at 0x0260EB88, 56 bytes long.
Data: < ` ` 8 ` > 80 F0 60 02 10 EE 60 02 38 ED 60 02 CD CD CD CD
Object dump complete.

Session ended : 01/21/14 20:29:51


if delete the two create roi filter line, the below outputed problems will not show.

i donot know which reason cause it ?

Stefan Geissler
January 21, 2014, 13:26:28
One of the problems is, the memory leak detector is running, before the IC Imaging Control is unloaded. So you may ignore this.

I suppose, during runtime of your program, the task manager does not show advancing memory allocation, right?