The "container" here is a Cos object. A direct object cannot be stored
into more than one other object (it does not matter whether the parent
is direct or indirect). To see why this is the case, consider that
direct objects are written inline when a PDF is saved. It cannot be
written in two places.
A = new direct object
CosDictPut ( oneplace ... A ) - will succeed
CosDictPut ( anotherplace ... A ) - will fail
To find out which object is concerned, use normal debugging
techniques; an exception is raised on your API call. (Tip: set a
breakpoint on a longjmp in PIMain to catch all exceptions as early as
You cannot find out what the other parent is by any API.