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 = :

drxdynamiclinker()->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">.