几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】exception in safeopenobject90 (http://www.dimcax.com/hust/showthread.php?t=16149)

yang686526 2009-05-05 09:59 AM

【转帖】exception in safeopenobject90
 
exception in safeopenobject()
exception in safeopenobject()
im geting a problem in safeopenobject(). following line throws an exception...
->getlayertableid().safeopenobject(oddb::kforread );
i just upgraded my project to unicode and upgraded dwg from 1.14 to dwg2.0.3 but still i was getting the same exception and when i upgraded to dwg2.02 the error remains intact.
what should i do? this roblem is bugging me for a long time now...
last edited by aliance; 13th december 2007 at 04:36 amfff">.
what exception?
vladimir
its throwing an exception "ewaserased".
layer table was erased?
what are you doing with it?
perhaps you can localize the problem, and send us a simple sample to reproduce the problem? (or, better, modify our sample and post modification)
vladimir
don't look at me like that... i just defined unicode to my previously non unicode project and upgraded it... till the time it was non-unicode this function was working fine... jus after doing this i'm getting an exception... is it a problem of unicode?
quote:
is it a problem of unicode?
how can i say?
vladimir
hmm thank anyways ...i guess not a problem of unicode as safeopenobject() as it is working fine when i use ->getmodelspaceid.safeopenobject().


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