高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】debug assertion loading dxf file
debug assertion loading dxf file
debug assertion loading dxf file
hello,
i am getting a debug assertion when i try to read a dxf file. here is the message:
assertion failed: invalid execution., file \opendwg\dd2.02\dwgdirect_vc2003\source\ge\gegbl.c pp, line 24
can anyone tell me what condition is causing this assertion? i don't have the access to the source code, and the debugger doesn't give me good information. autocad and the mfc sample application can read the file, so i suspect that the problem is in my application somewhere, but i don't have a clear notion of exactly what the problem is.
i tried to attach the file, but was unsuccessful.
thanks,
bob
debug assertion means that some unexpected situation happened.
if an exception is thrown from inside of readfile() that means that some data in the file is invalid.
even if odamfcapp loads the file it's recover may report the source of problem (like zero length vector etc.).
sergey slezkin
i understand what a debug assertion is. i am trying to find out what condition is being tested at the line of code specified in my original post. the assertion is not happening during readfile. it is happening when i am iterating through the model space block to read entities (i should have been more clear about this.)
i will try running the sample again and checking the recover option.
also, i am using dwgdirect 2.2.0 and visual studio 2003 on windows xp pro.
thanks,
bob
the only thing i can say about
assertion failed: invalid execution., file \opendwg\dd2.02\dwgdirect_vc2003\source\ge\gegbl.c pp, line 24
(without call stack, dxf file and maybe your code)
is that an exception will be thrown from ge library code while executing the next line.
sergey slezkin
i used the recover function in the sample program (odamfcappdll.exe), and it displayed a list of 48 errors in the dxf file. the errors are related to the names of the model and paper space records and invalid vertex and face numbers in some polyface mesh records. (there seems to be no way to save this list of messages.)
also, when i try to view summary information about the file, i get a debug assertion at odtoolkit.cpp, line 595. if i ignore the assertions, the summary info eventually gets displayed.
i tried again to attach the file, but kept getting a connection reset error.
could you pm me an e-mail address where i can send the file directly?
thanks,
bob
official address is support_at_opendesign_dot_com
but sslezkin_at_softdev_dot_spb_dot_ru would work faster.
sergey slezkin
|