高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】memory leak issue
memory leak issue
memory leak issue
hi,
in odamfcapp, memory leaks detected while opening a drawing. i am using _crtdumpmemoryleaks() function.
i am showing the details what i get.
how can fix this problem.
detected memory leaks!
dumping objects ->
{11530} normal block at 0x0ab3a6e0, 24 bytes long.
data: < > e0 a6 b3 0a e0 a6 b3 0a e0 a6 b3 0a cd cd cd cd
{11529} client block at 0x0ab3a730, subtype c0, 592 bytes long.
a cdwgviewer object at $0ab3a730, 592 bytes long
f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\strcore .cpp(141) : {11525} normal block at 0x0ab3ae00, 18 bytes long.
data: <| ox > 7c d9 4f 78 00 00 00 00 00 00 00 00 01 00 00 00
f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\strcore .cpp(141) : {11524} normal block at 0x0ab3ae40, 120 bytes long.
data: <| ox3 3 > 7c d9 4f 78 33 00 00 00 33 00 00 00 01 00 00 00
{11523} client block at 0x0ab3a9b0, subtype c0, 220 bytes long.
a cchildframe object at $0ab3a9b0, 220 bytes long
f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\strcore .cpp(173) : {11506} normal block at 0x0ab3af50, 162 bytes long.
data: <| ox h > 7c d9 4f 78 05 00 00 00 48 00 00 00 01 00 00 00
{11399} normal block at 0x0ab3acf0, 24 bytes long.
data: <p p p p > 50 94 b3 0a 50 94 b3 0a 50 94 b3 0a 70 e3 b0 0a
f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\strcore .cpp(141) : {11398} normal block at 0x0ab39110, 40 bytes long.
data: <| ox > 7c d9 4f 78 0b 00 00 00 0b 00 00 00 01 00 00 00
{11300} normal block at 0x0ab392b0, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11299} normal block at 0x0ab392f0, 28 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11298} normal block at 0x0ab39340, 64 bytes long.
data: <o d a m f c a p > 4f 00 64 00 61 00 4d 00 66 00 63 00 41 00 70 00
{11297} normal block at 0x0ab393b0, 20 bytes long.
data: < @ > 01 00 00 00 1f 00 00 00 1f 00 00 00 40 93 b3 0a
{11296} normal block at 0x0ab39450, 24 bytes long.
data: < > f0 ac b3 0a f0 ac b3 0a f0 ac b3 0a cd cd cd cd
{11295} normal block at 0x0ab394a0, 24 bytes long.
data: < p > a4 df d4 01 d0 e8 b0 0a cd cd cd cd 50 94 b3 0a
{11294} normal block at 0x0ab393f0, 32 bytes long.
data: < > 88 1c da 01 01 cd cd cd 00 93 b3 0a c0 92 b3 0a
{11291} normal block at 0x0ab394f0, 64 bytes long.
data: <t > 74 a8 cc 01 e4 a7 cc 01 94 a7 cc 01 dc ec b0 0a
f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\strcore .cpp(141) : {11288} normal block at 0x0ab39610, 54 bytes long.
data: <| ox > 7c d9 4f 78 12 00 00 00 12 00 00 00 01 00 00 00
f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\strcore .cpp(141) : {11287} normal block at 0x0ab39790, 78 bytes long.
data: <| ox > 7c d9 4f 78 1e 00 00 00 1e 00 00 00 01 00 00 00
{11285} normal block at 0x0ab39680, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11284} normal block at 0x0ab398e0, 16 bytes long.
data: <l > 6c be d4 01 e8 98 b3 0a 90 96 b3 0a 01 00 00 00
{11283} normal block at 0x0ab396c0, 28 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 03 00 00 00 02 00 00 00
f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\strcore .cpp(141) : {11281} normal block at 0x0ab39710, 72 bytes long.
data: <| ox > 7c d9 4f 78 1b 00 00 00 1b 00 00 00 01 00 00 00
{11271} normal block at 0x0ab39810, 92 bytes long.
data: <* p a p e r _ s > 2a 00 50 00 61 00 70 00 65 00 72 00 5f 00 53 00
{11270} normal block at 0x0ab398a0, 20 bytes long.
data: < - > 01 00 00 00 0d 00 00 00 2d 00 00 00 10 98 b3 0a
{11246} normal block at 0x0ab39920, 19 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 03 00 00 00 03 00 00 00
{11245} normal block at 0x0ab39960, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11244} normal block at 0x0ab399a0, 68 bytes long.
data: <d $ > 44 98 d3 01 a8 99 b3 0a 24 06 d7 01 01 00 00 00
{11242} normal block at 0x0ab39a10, 19 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 03 00 00 00 03 00 00 00
{11241} normal block at 0x0ab39a50, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11240} normal block at 0x0ab39a90, 68 bytes long.
data: <d $ > 44 98 d3 01 98 9a b3 0a 24 06 d7 01 01 00 00 00
{11239} normal block at 0x0ab39b00, 19 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 03 00 00 00 03 00 00 00
{11238} normal block at 0x0ab39b40, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11237} normal block at 0x0ab39b80, 68 bytes long.
data: <d $ > 44 98 d3 01 88 9b b3 0a 24 06 d7 01 01 00 00 00
{11235} normal block at 0x0ab39bf0, 19 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 03 00 00 00 03 00 00 00
{11234} normal block at 0x0ab39c30, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11233} normal block at 0x0ab39c70, 68 bytes long.
data: <d x $ > 44 98 d3 01 78 9c b3 0a 24 06 d7 01 01 00 00 00
{11232} normal block at 0x0ab39ce0, 19 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 03 00 00 00 03 00 00 00
{11231} normal block at 0x0ab39d20, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11230} normal block at 0x0ab39d60, 68 bytes long.
data: <d h $ > 44 98 d3 01 68 9d b3 0a 24 06 d7 01 01 00 00 00
{11222} normal block at 0x0ab39dd0, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11221} normal block at 0x0ab39e10, 33 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 11 00 00 00 11 00 00 00
{11220} normal block at 0x0ab39e60, 8 bytes long.
data: < > 20 9e b3 0a 01 00 cd cd
{11219} normal block at 0x0ab39ea0, 84 bytes long.
data: < ` _ > d4 60 d3 01 b8 9e b3 0a 08 5f d3 01 01 cd cd cd
{11215} normal block at 0x0ab39f20, 20 bytes long.
data: < 8 > 01 00 00 00 38 ff ff ff 01 00 00 00 01 00 00 00
{11214} normal block at 0x0ab38040, 84 bytes long.
data: < ` x _ > d4 60 d3 01 58 80 b3 0a 08 5f d3 01 01 cd cd cd
{11209} normal block at 0x0ab39f60, 136 bytes long.
data: < h 4 > 94 17 d3 01 68 9f b3 0a 34 10 d3 01 01 00 00 00
{11207} normal block at 0x0ab380c0, 40 bytes long.
data: < x @ x > b0 78 b2 0a 40 82 b3 0a b0 78 b2 0a cd cd cd cd
{11206} normal block at 0x0ab38120, 40 bytes long.
data: < x x > b0 78 b2 0a a0 8e b3 0a b0 78 b2 0a cd cd cd cd
{11205} normal block at 0x0ab38180, 40 bytes long.
data: < x x > b0 78 b2 0a 20 84 b3 0a b0 78 b2 0a cd cd cd cd
{11204} normal block at 0x0ab381e0, 40 bytes long.
data: < x px x > b0 78 b2 0a 50 78 b2 0a b0 78 b2 0a cd cd cd cd
{11203} normal block at 0x0ab38240, 40 bytes long.
data: < x > b0 78 b2 0a 20 87 b3 0a c0 80 b3 0a cd cd cd cd
{11202} normal block at 0x0ab382a0, 40 bytes long.
data: < x ` x > b0 78 b2 0a e0 60 b2 0a b0 78 b2 0a cd cd cd cd
{11201} normal block at 0x0ab38300, 40 bytes long.
data: < x x > b0 78 b2 0a e0 8d b3 0a b0 78 b2 0a cd cd cd cd
{11200} normal block at 0x0ab38360, 40 bytes long.
data: < x x > b0 78 b2 0a 00 86 b3 0a b0 78 b2 0a cd cd cd cd
{11199} normal block at 0x0ab383c0, 40 bytes long.
data: < x a x > b0 78 b2 0a a0 61 b2 0a b0 78 b2 0a cd cd cd cd
{11198} normal block at 0x0ab38420, 40 bytes long.
data: <` > 60 86 b3 0a e0 87 b3 0a 80 81 b3 0a cd cd cd cd
{11197} normal block at 0x0ab38480, 40 bytes long.
data: < x x > b0 78 b2 0a c0 86 b3 0a b0 78 b2 0a cd cd cd cd
{11196} normal block at 0x0ab384e0, 40 bytes long.
data: < x r x > b0 78 b2 0a b0 72 b2 0a b0 78 b2 0a cd cd cd cd
{11195} normal block at 0x0ab38540, 40 bytes long.
data: < x @d x > b0 78 b2 0a 40 64 b2 0a b0 78 b2 0a cd cd cd cd
{11194} normal block at 0x0ab385a0, 40 bytes long.
data: < x x > b0 78 b2 0a 80 87 b3 0a b0 78 b2 0a cd cd cd cd
{11193} normal block at 0x0ab38600, 40 bytes long.
data: < x ` > b0 78 b2 0a 20 8d b3 0a 60 83 b3 0a cd cd cd cd
{11192} normal block at 0x0ab38660, 40 bytes long.
data: < x x
thanks
rajeev
odamfcapp in debug build itself calls _crtdumpmemoryleaks()
most probably you call this function before a oddbdatabase is destroyed and oduninitialize() is called.
sergey slezkin
|