A
Arsen V.
Hi,
I have an object that derives from the following:
class ATL_NO_VTABLE CToolBandObj :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CToolBandObj, &CLSID_ToolBandObj>,
public IDeskBand,
public IObjectWithSiteImpl<CToolBandObj>,
public IPersistStream,
public IInputObject,
public IDispatchImpl<IToolBandObj, &IID_IToolBandObj, &LIBID_CTOOLBANDLib>,
public IDispEventImpl<1, CToolBandObj, &DIID_DWebBrowserEvents2,
&LIBID_SHDocVw, 1, 0>,
public IOleCommandTarget,
public IDocHostUIHandler
The IToolBandObj interface has a few properties: for example CityID (both
put and get).
The installation occurs through a .CAB.
The original installation page uses document.location.href (after <OBJECT>
loaded) to transfer the user to a page that instantiates the newly installed
object using <OBJECT> and clsid. It manipulates the properties.
Now, when this second page is closed, there is an error that says AXWIN
Frame iexplorer read from inaccessible memory location.
How should I approach this problem?
If I take away the <OBJECT> from the second page, everything works okay. So
it looks like if the ToolBandObj is not loaded as the IDeskBand (since the
browser was not opened a new yet), accessing it through the <OBJECT> tag
causes problems.
Thank you for all your previous help! It really help me. (As you can see ATL
is new to me).
Arsen
I have an object that derives from the following:
class ATL_NO_VTABLE CToolBandObj :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CToolBandObj, &CLSID_ToolBandObj>,
public IDeskBand,
public IObjectWithSiteImpl<CToolBandObj>,
public IPersistStream,
public IInputObject,
public IDispatchImpl<IToolBandObj, &IID_IToolBandObj, &LIBID_CTOOLBANDLib>,
public IDispEventImpl<1, CToolBandObj, &DIID_DWebBrowserEvents2,
&LIBID_SHDocVw, 1, 0>,
public IOleCommandTarget,
public IDocHostUIHandler
The IToolBandObj interface has a few properties: for example CityID (both
put and get).
The installation occurs through a .CAB.
The original installation page uses document.location.href (after <OBJECT>
loaded) to transfer the user to a page that instantiates the newly installed
object using <OBJECT> and clsid. It manipulates the properties.
Now, when this second page is closed, there is an error that says AXWIN
Frame iexplorer read from inaccessible memory location.
How should I approach this problem?
If I take away the <OBJECT> from the second page, everything works okay. So
it looks like if the ToolBandObj is not loaded as the IDeskBand (since the
browser was not opened a new yet), accessing it through the <OBJECT> tag
causes problems.
Thank you for all your previous help! It really help me. (As you can see ATL
is new to me).
Arsen