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

yang686526 2009-05-07 06:05 PM

【转帖】using Oddbole2framegetlinkname90 Seems To Crash Odamfcapp
 
using oddbole2frame::getlinkname() seems to crash odamfcapp
using oddbole2frame::getlinkname() seems to crash odamfcapp
hi,
i tried to use the oddbole2frame::getlinkname() method in odamfcapp(v 1.14.02) after inserting a new ole object.
while debugging, i noticed that this method calls the method linkname() of the derived class of odoleitemhandler - oledwgitem(implementation in ole.cpp). it seems to cause a recursion calling and respectively a stack overflow.
is it a bug in ole.cpp and is there any way to get the linkname of a linked object?
thanks in advance,
nino
hi,
with current implementation of dd ole handler (odoleitemhandler.drx) oddbole2frame::getlinkname() and oddbole2frame::getlinkpath() should return the same value (it works fine for me). most likely, you use sample handler from odamfcapp.exe example there is a bug in there in "ole.cpp" -- oledwgitem::linkname() calls itself. just call oddbole2frame::getlinkpath() or use "odoleitemhandler.drx".
thanks for the attention.
best regards,
nino


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