Hi all,
I have an app that is using OLE compound storage and for each stream it uses an CArchive that has the boolean m_bForceFlat on FALSE.
If I perform a copy on an PowerPoint object and place into my app, it pastes properlly.
The interesting thing is that I can save the document once, no issues...but when I save the document a second time, i get this weird error "attempted to use an object that has ceased to exist"
if I delete the OLE object and paste again from PowerPoint, i can save one time without issues, but a second save would give me the same error.
Now, If on the CArchive object used internally I switch m_bForceFlat to TRUE, the problem is solved.
I can't deliver the code that way (with the boolean on TRUE) beacuse of some internal reasons.
The function that failes deep inside OLE is ::OleSave with STG_E_REVERTED result.
Does anyone has an idea why is this error being produced like this?
Thanks,
Sorin.