Skip to main content
Participant
July 4, 2016
Question

Acrobat closes after CosNameValue

  • July 4, 2016
  • 1 reply
  • 696 views

Hello.

I have a file with a lot of elements on page. I use CosObjEnum with my own procedure to enumerate it. But after some iterations (over 10000) acrobat closes after function CosNameValue. In the same time it does not throw any exceptions, just closes. Can anybody tell me what it was?

Thank you.

This topic has been closed for replies.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
July 4, 2016

When you run Acrobat in the debugger, do you get any indication why it "closes"?  This closing may actually be a crash. Are you sure you are releasing all resources you are acquiring? Do you have an exception handler in place around the location where you assume the problem occurs?

JeKichAuthor
Participant
July 4, 2016

I don't get any indication, acrobat just closes like it is normal exit. Yes, I have exception handler but it was ignored.

When I remove line "CosNameValue(obj);", everything is OK.

lrosenth
Adobe Employee
Adobe Employee
July 4, 2016

Did you check if the object was valid and of type CosName before you called CosNameValue() on it?

However, even so, it would be throwing an exception. You are using DURING/HANDLER blocks and not trying C/C++ exceptions, right?