Deconstructor throwing exception
Hi, I have the following code within my main class, and this bit of code is from the deconstructor. Now this interface IConnectionPoint *m_pCP can return an error if the Unadvise method fails. Now should I throw this error from the deconstructor, or.... well... how else would I deal with this if an error did occur from the method? The return type is a HRESULT.
m_hrRetResult = m_pCP->Unadvise(m_ulAdvise);
if(FAILED(m_hrRetResult)) throw m_hrRetResult;