Catostrophic putref :(
COM
1
Posts
1
Posters
1
Views
1
Watching
-
I have a free-threaded ATL object. Hooray. I used the ATL wizards to set up a IDispatch* property, using putref. Then I manually changed the IDispatch to IPictureDisp. I'm testing this with a simple MFC dialog test app. When I go to set the picture property by calling the com_ptr's interface wrapper function:
void IMyObject::PutRefPicture ( IPictureDisp * pVal )
HRESULT _hr = putref_Picture(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}i get an exception on the putref_Picture call. it is a "Catostrophic failure", according to the Error Lookup. and, i can't even step into that putref_Picture call, it blows up on that call. any ideas?? -c