Skip to main content
gregbatie
Participant
February 9, 2017
Question

Crashing in acrobat DC with sample plugin

  • February 9, 2017
  • 0 replies
  • 300 views

I'm experiencing and issue in the sample project "ExternalWIndow".

http://download.macromedia.com/pub/developer/acrobat/sdk/dc/sdkDC_v1_win.zip

I've slightly modified the code in a way that I could have two documents open at once. But when i close one of the documents acrobat dc crashes.

I added the following code to IACWndProc()

if(openInExt){
ASFileSys fileSystem = ASGetDefaultUnicodeFileSys();
ASPathName pathName = ASFileSysCreatePathFromCString(ASGetDefaultUnicodeFileSys(), path);

AVDocOpenFromFile(path, fileSystem, ASTextFromPDText("sometext"));
openInExt = false;
return DefWindowProc (hwnd, msg, wParam, lParam);
}
openInExt = true;

I also commented out the WM_Close code so that the previously opened document would stay open but after closing the document opened via AVDocOpenFromFile all other documents close and DC crashes. This only happens with Acrobat DC and not Reader.

What am i doing wrong?

This topic has been closed for replies.