几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】hang on unload pattern manager (http://www.dimcax.com/hust/showthread.php?t=16456)

yang686526 2009-05-05 11:45 AM

【转帖】hang on unload pattern manager
 
hang on unload pattern manager
hang on unload pattern manager
my version is 2.05.02
i now that during unload the library when there are unfreed dd objects the application hang.
i suppose to have such situation.
1. i'm loading dwg file, adding pattern using:
code:
m_pdb->appservices()->patternmanager()->appendpattern(
oddbhatch::kcustomdefined, vodpatstr, m_hatchpattern);2. then adding dd objects.
3. save new dwg file.
4. during uninitialize (oduninitialize) system crash(hang) in procedure:
code:
odhatchpatternmanagerimpl::~odhatchpatternmanagerimpl() + 0x53 bytes c++and keep doing loop in
code:
__old_sbh_decommit_pagesi can reproduce it also by adding:
code:
exhostappservices::~exhostappservices(void)
{
m_patternmanager.release(); // <-- hang
m_patternmanager = null;
}i'm almost sure that all objects are freed because i'm counting all of them.
it is not repetable for all of dwg files i read in 1st step.
is it possible that the dwg files is a bit wrong and cause this.
tia
michal
last edited by michał krzesiak; 17th march 2009 at 05:39 amfff">.


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