![]() |
【转帖】assertion firing when reading a dwg file
assertion firing when reading a dwg file
assertion firing when reading a dwg file hi there, i've just downloaded dwgdirect v1.11 and built it into our product. i'm using the vc6md libraries. when i read the attached file i get an assertion firing somewhere under services.readfile(). if i then reread the file the assertion doesn't fire. i get similar behaviour in a debug build of odamfcapp. i think there is an invalid colour index in the file, but is there something i'm not calling which could stop the assertion? my work around at the moment is to set my own assertion handler (which does nothing) but this isn't ideal. thanks attached files mline style in drawing realy contains bad index but assertion is cause by other problem (wrong type of pointer to next entity in entity list - soft ownership instead of soft pointer) assertion occurs only in debug build to indicate unexpected reference type (the file is probably written by non-acad application). the problem is healed by dd at file loading. the asserion happens only once because oda_assert_once() macro is used to avoid thousands of assertions for each entity loaded from file. sergey slezkin ok - thanks. i'll stick with overriding the assert handler during the file read then - it breaks our debug unit tests/test run otherwise. |
所有的时间均为北京时间。 现在的时间是 12:56 PM. |