查看单个帖子
旧 2009-05-05, 11:45 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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">.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)