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

AcroPdf Active X control with Reader 9.0

Community Beginner ,
Jul 02, 2008 Jul 02, 2008
Hi Guys,
We have been developing a Windows .NET based solution that displays PDF files. We have been using the AcroPDF.dll active X component which further launches the AcroRd32.exe.

Observations:
1. Upon installation of Reader 9.0, we no longer see the AcroRd32.exe in the task manager.
2. When we exit the application, we see an error message "Cannot read the memory at ...."

Questions:
1. Do we need a newer version of the Active X control? If yes, Where do we get this new version from?
2. How has Adobe addressed issues of memory management in Reader 9.0?
TOPICS
Acrobat SDK and JavaScript
52.4K
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
Explorer ,
Jul 02, 2008 Jul 02, 2008
When you install Adobe Reader, it installs the ActiveX along with it - nothing extra to install. I assume you uninstalled all other versions of Reader when you did so - yes?

What "memory management issues" are you referring to?

Leonard
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
New Here ,
Oct 13, 2008 Oct 13, 2008
Dear Rosenthol :

I come from taiwan ^^

I have the same problem in the forms

http://www.adobeforums.com/webx/.59b5b204

Leonard Rosenthol, "C#, App.Exit() is not closing Acrobat process." #1, 10 Oct 2008 1:07 pm

When we exit the application, we see an error message "Cannot read the memory at ...."

===



My old program is 7.0, are normal before, but updated to 9.0, will appear on the attached map(i send mail to you) error.
Are there any ways to solve it?
Thank you very much~
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
New Here ,
Jan 30, 2009 Jan 30, 2009
Hi all,

We are getting the same issue when switching from Adobe Reader version 8.0 to 9.0.

We have a C# application which loads PDF documents on a WinForm using the AxAcroPDF component. When the form is loaded and unloaded multiple times and then the main application exited, the following is obtained:

Application error:
i The instruction at .... referenced memory at ....... The memory could not be "read"

Has a fix/patch been released for this?

The issue does not occur when uninstalling Adobe reader 9.0 and reinstalling Adobe reader 8.0.

Many thanks,
Kavish
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
New Here ,
Feb 27, 2009 Feb 27, 2009
Any news on this issue?

Try running the BasicIacOCXCS example found in Acrobat 9 SDK.
this will give you the error as mentioned above.
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
Explorer ,
Feb 27, 2009 Feb 27, 2009
I believe that this problem has been corrected for a future update.
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
Community Beginner ,
Mar 03, 2009 Mar 03, 2009
Thanks for the reply. Can you tell us what can we do in the mean time? Also, what is the release date of your next update?
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
New Here ,
Mar 06, 2009 Mar 06, 2009
Hi all ,

We are facing similar problem on press of tab.

In Windows application we are using AcroPDF.dll to load Reader 9.0.
When we run the application PDF is Loaded sucessfully , but later when we press tab application closes with an Error .

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Are there any ways to solve this?

Thanks,
gmdarsh
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
New Here ,
Mar 11, 2009 Mar 11, 2009
I've just downloaded and tested the last release.
Stil having the same problem.

To reproduce the problem:
- Download Acrobat 9 SDK
- Run BasicIacOCXCS (compiled!!)
- Open 2 PDF files
- Close the application

Memory Read or Write Exception !

Can somebody tell me how too fix this ??
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
New Here ,
Apr 03, 2009 Apr 03, 2009
I fixed this problem guys

Just put the AxAcroPDF object inside a panel on your windows form then add a OnClosing event for the form and with the following I don't get the errors any more

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
Controls.Remove(panel1);
System.Threading.Thread.Sleep(500);
}

without the sleep call I would sometimes get the error, I didn't fiddle with the sleep time though.

Hope this helps!
CodingMoose
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
New Here ,
Jun 05, 2009 Jun 05, 2009

CodingMoose ,

This only fixes it for people that are getting the error when closing the form, right?

I am having the same problem as DarshanManjunath - we're both getting this error when hitting tab while the pdf viewer has focus on the form.

Any idea how to avoid the error in this case?  Thanks!

EDIT:  I guess that was the case for the original post on this thread, sorry!

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
New Here ,
Feb 26, 2010 Feb 26, 2010
I just found the solution at the following link:
http://stackoverflow.com/questions/1...sing-problem-c

It uses the following code:

    [System.Runtime.InteropServices.DllImport("ole32.dll")]
   
static extern void CoFreeUnusedLibraries();

   
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
   
{
       
if (axAcroPDF1 != null)
       
{                                
            axAcroPDF1
.Dispose();                
           
System.Windows.Forms.Application.DoEvents();
           
CoFreeUnusedLibraries(); 
       
}
   
}

I used it, and found no errors 🙂

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
New Here ,
Mar 16, 2010 Mar 16, 2010
LATEST

This doesn't work for me. A working solution is over here:

http://stackoverflow.com/questions/1359616/axacropdflib-at-closing-problem-c

Bye

Stefan

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