Skip to main content
Participating Frequently
Aug 24, 2024 10:10 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
PDF Automation Station
Community Expert
Aug 24, 2024 11:01 PM UTC

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.

2 replies

PDF Automation Station
Community Expert
Community Expert
Aug 24, 2024 11:01 PM UTC

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.

Translate
wellsgbwAuthor
Participating Frequently
Sep 3, 2024 9:27 PM UTC

Excellent recommendation!  It cured my JavaScript problem.

Translate