高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】memory leak in odamfcapp
memory leak in odamfcapp
memory leak in odamfcapp
i found memory leak in example odamfcapp, debug version. to repeat the problem, debug odamfcapp. after the application exits, the output window in vc shows:
...
detected memory leaks!
dumping objects ->
{43} normal block at 0x03971f20, 33 bytes long.
data: < c > 00 43 00 cd cd cd cd cd cd cd cd cd cd cd cd cd
{42} normal block at 0x03970060, 40 bytes long.
data: < |l > 14 7c 4c 10 16 00 00 00 00 00 00 00 00 00 00 00
object dump complete.
the thread 0xf30 has exited with code 0 (0x0).
the program 'd:\ycf\opendwg\dwgdirect\exe\debug\odamfcapp.exe' has exited with code 0 (0x0).
ycf888
this is known effect. actually the problems is in diagnostics not in dwgdirect or sample code.
memory dumped as leaks is deallocated in static objects destructors. checking memory and dumping leaks takes place before static objects destructors are invoked.
sergey slezkin
|