Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Crashing in acrobat DC with sample plugin

New Here ,
Feb 09, 2017 Feb 09, 2017

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?

TOPICS
Acrobat SDK and JavaScript
277
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation