473,394 Members | 1,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

AcroRd32.exe left open

YYZ
In my app, I am displaying PDF files to the user. I'm using the COM
component "Adobe Acrobat 7.0 Browser Document" component. This works
great. Just open up my form, then have it tall the PDF control to
..LoadFile(sFileName) -- it displays and is great.

However, after closing the form, even closing the app, there is still a
process running (viewable by Task Manger processes tab) called
AcroRd32.exe -- am I supposed to do something to clear out the process?
I've actually seen this on other computers that don't even HAVE my app
installed on it, and this causes problems like Outlook not opening,
another app that we use (third party) crashing at odd times, and maybe
some other problems. This is why I don't want our app being a
contributor to this problem.

Any ideas from anyone? Is there a way to find out the process ID of
the AcroRd32.exe instance that my app spawns? If there was, then I
could seek out and kill this particular process...but I don't want to
kill just any old AcroRd32.exe process, because the user may have
another PDF file open and not want that one closed yet!

Any pointers would be greatly appreciated.

Matt

Feb 27 '06 #1
4 5695
Use ReleaseComObject like you do with MS Word. That will remove it from the
process list

-----------------------------------------------------

P.S. Spoof your e-mail or you will get tons of SPAM

Example:

me@nospamplease.zzz

-----------------------------------------------------

Crouchie1998
BA (HONS) MCP MCSE
Feb 27 '06 #2
YYZ
I looked into that, but I can't get it to work -- I get an error that
the object is of the wrong type. I don't know what other object I
should use...the object that I've dropped on my form I've named
pdfViewer, and it is of type AxAcroPDFLib.AcroPDF. Here is the code
I'm using:

iIndex =
System.Runtime.InteropServices.Marshal.ReleaseComO bject(pdfViewer)
Do Until iIndex = 0
iIndex =
System.Runtime.InteropServices.Marshal.ReleaseComO bject(pdfViewer)
Loop

On the very first line it blows up.

Is there anywhere special I'm supposed to put this? What object should
I pass to this method?

Matt

Feb 27 '06 #3
CMM
I believe that AcroRd32.exe closes itself after a while (might depend on the
version).
It basically stays in memory to serve a Web Browser or other app that may
want to load additional PDF's.... like a caching mechanism because it takes
so long to load in the first place. Come back 10 or 15 minutes later and see
if it's still around in memory. I doubt it will be... on my system it goes
away after five minutes.

--
-C. Moya
www.cmoya.com
"YYZ" <ma********@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
In my app, I am displaying PDF files to the user. I'm using the COM
component "Adobe Acrobat 7.0 Browser Document" component. This works
great. Just open up my form, then have it tall the PDF control to
.LoadFile(sFileName) -- it displays and is great.

However, after closing the form, even closing the app, there is still a
process running (viewable by Task Manger processes tab) called
AcroRd32.exe -- am I supposed to do something to clear out the process?
I've actually seen this on other computers that don't even HAVE my app
installed on it, and this causes problems like Outlook not opening,
another app that we use (third party) crashing at odd times, and maybe
some other problems. This is why I don't want our app being a
contributor to this problem.

Any ideas from anyone? Is there a way to find out the process ID of
the AcroRd32.exe instance that my app spawns? If there was, then I
could seek out and kill this particular process...but I don't want to
kill just any old AcroRd32.exe process, because the user may have
another PDF file open and not want that one closed yet!

Any pointers would be greatly appreciated.

Matt

Feb 28 '06 #4
YYZ
Now that's interesting. I'll do some time tests on it. Thanks.

Matt

Feb 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: tdunham | last post by:
Hi, I am trying to print Pdfs from my C# code using AcroRd32.exe /t and passing in a file path\name and a network printer path. When I paste my filename and printer path into Start\Run, everything...
4
by: Lakshmi Narayanan | last post by:
hi all, i have this problem.i want the user of my page to only click the link with the right mouse button and open a word document using the open in new window option.if he clicks on the left...
4
by: jbm05 | last post by:
Hi, I'm curious about the computational complexity of a query I have. The query contains multiple nested self left joins, starting with a simple select, then doing a self left join with the...
3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
2
by: Andrew Wrigley | last post by:
Hi Is there any way to walk thru memory to find a variable that holds a reference to a recordset that has been left open? (I use ADO for my recordsets.) The reason I want this info: I am...
2
by: Nathan Given | last post by:
Hello All, I am trying to debug a broken query. The query uses Left$(,4) instead of Left(,4). What is the difference between the Left() and Left$() functions in Microsoft Access? Thanks!...
1
by: Paul | last post by:
Hi just wondering what could cause a left open SQL connection as this has only occured 2 times in the last week. The error it creates is when a web app tries to open a connection an error message...
1
by: Paul | last post by:
Hi I posted this as new since was not sure older posts are responded to. Anyhow the problem is a connection being left open, and has only happended a few times. This is code that someone else...
2
by: William White | last post by:
Just thought of this, in reference to earlier discussion about replacing &< and &> with !<< and !>> to correct the problem w/ rtree search strategy "replacement" at the node level. It's possibly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.