查看单个帖子
旧 2009-05-06, 10:55 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem printing files with dd 1.10 update 1

problem printing files with dd 1.10 update 1
problem printing files with dd 1.10 update 1
since i upgraded to dwgdirect 1.10 update 1 (posted last week) i'm having problems when printing files (it worked fine with original version 1.10). i also tested printing with odamfcapp sample and it gives the same error. the program stops with an access violation at file exgsgdidevice.cpp, in the following function:
odgsviewptr exgsgdidevice::createview(const odgsclientviewinfo* , bool )
{
return odgsviewptr(new odrxobjectimpl<exgdiview>, kodrxobjattach);
}
after returning from this function an exception is thrown in function
odgsbasedevice::addview (...);
the error happens with any r14 file (to test it i created a drawing with just a rectangle and the error also occured), so it's not related to a specific file.
i also tested debug (static) and release (dll) versions od dwgdirect, same error with both;
the error occurs only when printing a file - it's rendered correctly on screen;
is this a bug or am i doing something wrong? (i double checked that i'm linking with the correct libraries and have the correct include files, but as i said it also happens with odamfcapp sample..);
my build environment is windows 2000 sp4, visual c++ 6 sp5;
thanks for your attention,
tiago gehring
hi,
please, try to enable c++ rtti option in your application if it is not.

thanks, it solved the problem... it prints fine now;
is printing from the odamfcapp supposed to work from vc2003?
clive broadhurst
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)