Skip to main content
Participating Frequently
August 24, 2024
Answered

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

  • August 24, 2024
  • 1 reply
  • 1451 views

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-p/9984061.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-not-be-written/m-p/14818947/page/3#M476195.

This topic has been closed for replies.
Correct answer PDF Automation Station

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.

1 reply

PDF Automation Station
Community Expert
Community Expert
August 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.

wellsgbwAuthor
Participating Frequently
September 3, 2024

Excellent recommendation!  It cured my JavaScript problem.