Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adobe Reader via VB6...UGH 1

Status
Not open for further replies.

Chad123

Programmer
Apr 11, 2003
52
CA
Hi,

I have recently noticed something really weird with the Adobe Reader on a Windows 2000 Terminal server. If I log onto the console, everything is fine and works. However, if I login using a terminal session, I can open 1 pdf document fine. It is when I open up the second one, it seems to freeze and won't respond anymore.

The whole point to this is that we have an application that will create a pdf and then we bring it into view. Now when you try to load another pdf into the viewer (Adobe Reader), it gives an error message:
The instruction at "0x77fcb2a7" referenced memory at "0x00720045". The memory could not be "read".

Then:
The instruction at "0x77fcb03d" referenced memory at "0x00000000". The memory could not be "written"

Now, this will only happen in a terminal session. Now I can get the reader to freeze sometimes opening it by itself by opening more then 1 document at the same time.

FYI: We use the Amyuni PDF Creater to make our PDFs.
Adobe Reader: 5.0.5 (same issues as 5.0.1). Visual Studio 6.0 used for Application creation.

Anyone have any suggestions?

Chad
 
Thanx for the info, however, I forgot to mention one thing... This was working for months upon months, but now all of a sudden I have encountered these errors. It is not a printer issue, and it is not a rights issue either...
 
Have you tried updating to Reader 5.1. Could be that there is a corruption in the Reader, also did you change the Terminal Server Mode? May be you need to include a Manifest for Reader.
 
I have tried updating Adobe but that did not help, and I tried both modes!

I am reinstalling SP3 to see if that helps. Suppose it may just be my code that is pouched? (However, I have not made ANY modifications to that section)

hmmmmm
 
Do you do this Shell("adobe exe " & "your.pdf")
 
How do you launch the Reader? Are you using Acrobat Exchange for building not PDF's?
 
We use an actual API function call. We use an Adobe product to create the pdf, but I ma not sure which one to be honost with you.

Why? Whatcha thinkin?
 
OK, I did some digging, and we use pdf.ocx to open the pdf's. (I did not design this part, I am just fixing it...)

Any ideas?
 
Okay the PDF.OCX is not Supported by Adobe in the manner in which you are using. You need to download the SDK, and take a look at the example ActiveView. The error:
The instruction at "0x77fcb03d" referenced memory at "0x00000000". The memory could not be "written"

Is a problem in your exe, and I have seen it before which was why I initially asked.

Try it using the ActiveView Example. Please note that VB5Programmer led me to this in a prior thread I simply have no idea where that thread is anymore. Anyway it solved alot of my problems and may solve yours.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top