几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem printing files with dd 1.10 update 1 (http://www.dimcax.com/hust/showthread.php?t=18057)

yang686526 2009-05-06 10:55 PM

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


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