几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】assertion failure when opening attempting to display a file (http://www.dimcax.com/hust/showthread.php?t=15151)

yang686526 2009-05-04 04:18 PM

【转帖】assertion failure when opening attempting to display a file
 
assertion failure when opening attempting to display a file
assertion failure when opening attempting to display a file
below are a few lines of code. when i try to update pmemorydcdevice given one drawing, it fails on me. file loads in autocad 2007 just fine. if i ignore the assertion error while debugging, the file will eventually display just fine in the software we wrote. it's just the initial update as far as i can tell.
the message i get is along the lines of
quote:
file: e:\opendwg\dd2.02\dwgdirect_vc6\source\ge\gematri. ..
line: 92
expression: test == odgematrix2d::kidentity
klg is from a subclass of odgicontextfordbdatabase. i am running v.2.2.0 of the open design libraries.
code:
odgsmoduleptr pgsmodule = ::odrxdynamiclinker()->loadmodule(l"wingdi.gs");
odgsdeviceptr pmemorydcdevice = pgsmodule->createdevice();
pmemorydcdevice = oddbgsmanager::setupactivelayoutviews( pmemorydcdevice, &klg );
// do some stuff
pmemorydcdevice->update();
attachments don't seem to work, so no file immediately available. anything i can do to check for errors in the file before attempting to display it?
*edit*
i should add i see the same behaviour in odamfcapp when i attempt to vectorize using wingdi.gs in the 2.2.0 or 2.3.0 samples.
last edited by phil; 6th april 2007 at 07:43 amfff">.


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