For draw text on pageview, i build a Form XObject and put all the indirect object into my std::vector.
This Form is only build when plugin loading and when plugin unloading i call CosObjDestroy to release resource.
But,during release process raised an error "Desired operation cannot be performed on this object".
I loged all the object in my vector,they are indirect obj.
So what's the reason cause CosObjDestory raised error?
You pretty much NEVER need to call that method. The SDK's memory management will take care of all the CosObjs when the doc is closed.