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

Windows "Referenced memory error" problem with JavaScript modifying Acrobat user interface

Community Beginner ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

Does Acrobat Pro DC have problems using JavaScript to modify its user interface (e.g., menus) in the old Acrobat interface?

Background:
I am trying to add an "Extract Pages" entry to the old Acrobat view's Edit menu using JavaScript. For the JavaScript code, see https://community.adobe.com/t5/acrobat-discussions/request-for-keyboard-shortcut-to-extract-pages/td....I am using Windows 10 and 64-bit Acrobat Pro DC version 2024.002.21005.

After I place the "Extract Pages" JavaScript file in Acrobat DC's Javascripts folder, Acrobat Pro DC produces the error message "Windows - Application Error   The instruction at 0x000000005E048170 referenced memory at 0x0000000005E048170. The memory could not be written. Click on OK to terminate the program." a minute or 2 after I open a large PDF file (e.g. >1 megabyte) with Acrobat Pro DC. 

As a puzzling modification to this behavior, Acrobat Pro DC does not produce the "Windows - Application Error" message with the "Extract Pages" JavaScript file after I first open a small PDF file (e.g., <100 kilobytes).  After opening a small PDF file, I can open very large PDF files (e.g., >10 megabyte) without seeing the "Windows - Application error" message.

As another recent example of Acrobat's "Windows - Application Error" about referenced memory, see https://community.adobe.com/t5/acrobat-discussions/windows-application-error-referenced-memory-could....

TOPICS
JavaScript

Views

353

Translate

Translate

Report

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

correct answers 1 Correct answer

Enthusiast , Aug 24, 2024 Aug 24, 2024

Type "Acrobat" in the Windows search field.  When the app comes up, right-click it and select "Open file location".  Right-click the Adobe Acrobat icon and select "Troubleshoot Compatiblity".  Click "Try recommended settings".  That should fix the error but you might have to change some of your settings in Edit > Preferences back the way you had them.

Votes

Translate

Translate
Enthusiast ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

Type "Acrobat" in the Windows search field.  When the app comes up, right-click it and select "Open file location".  Right-click the Adobe Acrobat icon and select "Troubleshoot Compatiblity".  Click "Try recommended settings".  That should fix the error but you might have to change some of your settings in Edit > Preferences back the way you had them.

Votes

Translate

Translate

Report

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
Community Beginner ,
Sep 03, 2024 Sep 03, 2024

Copy link to clipboard

Copied

LATEST

Excellent recommendation!  It cured my JavaScript problem.

Votes

Translate

Translate

Report

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