Hi,we have the same problem - events not firing. Did you find a solution? We use Argis 10.1, GeoDB (Oracle) C++ and direct COM interfaces.. All code compiles fine and runs - just events are not comming when doing e.g. reconcilation.. (Please note: we don't like to implement extension interfaces - although we tried it did not help)Code snippet:class cArcGISVersionEvents : public IVersionEvents
... implements interface IVersionEvents + QueryInterface method which gets called (2x - first call from our code, second from COM object
Then we have function to register events - it takes workspace and our handler.. When debugging it gets through the code correctly, no exception, no error..HRESULT RegisterVersionEvents(IVersionedWorkspace* _workspace, cArcGISVersionEvents* _eventHandler)
{
HRESULT hr = E_FAIL;
DWORD cookie = 0;
CComPtr<IConnectionPointContainer> cpc;
_workspace->QueryInterface(IID_IConnectionPointContainer,(void**)&cpc);
if (cpc)
{
CComPtr<IConnectionPoint> cp;
hr = cpc->FindConnectionPoint(IID_IVersionEvents, &cp);
if (cp)
{
IUnknown* pUnk = NULL;
_eventHandler->QueryInterface(IID_IVersionEvents,(void**)&pUnk);
hr = cp->Advise(pUnk, &cookie);
}
}
return hr;
}
Thanks Tomas