Acrobat DC SDK crash in PDPageDrawContentsToWindow
I have inherited an Acrobat plugin which displays 1-n PDF pages in an offline bitmap using PDPageDrawContentsToWindow, in addition to displaying 1 PDF page in the main Acrobat window. The offline bitmap shows imposed output.
This is a Windows only plugin, not targeting Acrobat Reader.
Certain PDF files crash the DC SDK plugin version, but work fine in the Acrobat XI plugin version. Other PDFs are fine in the DC SDK plugin. The crash is always in PDPageDrawContentsToWindow. There is no consistency as to whether the 1st or n-th page rendered to the offline bitmap crashes PDPageDrawContentsToWindow.
In all cases, the PDF page displays fine in the main Acrobat window and there is no indication the PDFs are corrupt (Acrobat does not ask to save the files, syntax preflighting passes, etc.)
I have looked at the "What's new" document, but there doesn't seem to be significant changes from XI SDK to DC SDK.
I have changed the plugin to wait for the AVPageViewDidDraw notification before starting to use PDPageDrawContentsToWindow, but the behavior did not improve.
Does anyone have any suggestions as to where to look?
The PDFs causing the crash have some large images (e.g. 6000x2400, 5400x3700) and some are part of transparency regions - but that is about the extent of the 'common thread' between them.
