高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|