14 Nov
2002
14 Nov
'02
7:05 p.m.
On 14 Nov, Martin Schroeder wrote:
Any idea why replacing obj1->initDict(obj->getStream()->getDict()); with obj1->initDict(xref); dict = obj->streamGetDict(); for (i = 0, l = dict->getLength(); i < l; i++) { dict->getVal(i, &obj3); obj1->dictAdd(dict->getKey(i), &obj3); } in copyObject leads to a SIGSEV in writeRefs or how to code this right?
You need to copy the key string: obj1->dictAdd(copyString(dict->getKey(i)), &obj3); - Derek