高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】exception when calling writefile
exception when calling writefile
exception when calling writefile
code:
oddbdatabaseptr dboutput = m_pdb->wblock();
{
odstreambufptr pout = odmemorystream::createnew();
dboutput->writefile( pout, m_saveastype, oddb::vac15);
}
{
dboutput->writefile(_t("c:\\test.dwg"), m_saveastype, oddb::vac15, theapp.getsavepreview());
}hi,
this code, with the database in attachment, generate an exception during the second call of writefile.
i can't find why this exception is thrown.
i try to delete all the entities of the drawing but it doesn't change anything.
if i change the saveas dwgversion to oddb::vac21, it works, but we want to save it as oddb::vac15.
best regards,
froggy.
attached files
i couldn't reproduce that in 2.5.1.
i assumed that m_saveastype = oddb::kdwg, and theapp.getsavepreview() is true.
vladimir
|