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 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
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
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
Now that's interesting. I'll do some time tests on it. Thanks.
Matt This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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!...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |