template <const GUID* pFbCLSID, const char* pMT, class ICurObjInterface, const IID* piid, const GUID* plibid>
STDMETHODIMP CFBControl<pFbCLSID, pMT,ICurObjInterface,piid,plibid>::SetClientSite( IOleClientSite *pClientSite )
{
HRESULT hr = IOleObjectImpl<CFBControlX>::SetClientSite (pClientSite);
if (!pClientSite || !pluginMain) {
shutdown(); <--- SHUTDOWN IS GETTING CALLED
return hr;
}
m_serviceProvider = pClientSite;
if (!m_serviceProvider)
return E_FAIL;
m_serviceProvider->QueryService(SID_SWebBrowserApp, IID_IWebBrowser2, reinterpret_cast<void**>(&m_webBrowser));
m_serviceProvider.Release();
if (m_webBrowser) {
m_propNotify = m_spClientSite;
}
clientSiteSet();
return S_OK;
}
I'm using shutdown to clean up everything, so this is throwing a monkey wrench into our device initialization.
My questions are:
1) Does this somehow mean that the web app has closed or refreshed the page? (I suspect that the 3rd-party web app is starting our device initialization during the "page loaded" notification)
2) Should my non-UI plugin have to shutdown when there is no client site? If not, how can I tell when to "ignore" the shutdown notification in this case.
-- Geoff
--
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.