几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】memory leak in odamfcapp (http://www.dimcax.com/hust/showthread.php?t=17171)

yang686526 2009-05-06 05:36 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 04:46 AM.