Excel application not going away..

S

Somashekhar

Hi,

I have an xll excel addin that makes some COM calls. I
call OleInitialize and OleUninitialize for every COM/OLE
call. But when Excel is exited, there is a process in task
manager that still resides for long time. What's the
reason for this ? Pls Suggest.
 
S

Steve Culhane [MS]

Srini,
What are you developing it in, VC6 or Dot NET. And
Do you have a small code snippet that reproduces the
problem. If you comment out your COM calls does the
problem go away? If so I'd peruse that avenue. It sounds
a lot like references not being released at shutdown.



Stephen Culhane
(e-mail address removed)
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
| Content-Class: urn:content-classes:message
| From: "Somashekhar" <[email protected]>
| Sender: "Somashekhar" <[email protected]>
| Subject: Excel application not going away..
| Date: Tue, 19 Aug 2003 15:24:56 -0700
| Lines: 7
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNmoLfSzsYFrdj9Si2GjK3gMYe18Q==
| Newsgroups: microsoft.public.office.developer.com.add_ins
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.office.developer.com.add_ins:4382
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.office.developer.com.add_ins
|
| Hi,
|
| I have an xll excel addin that makes some COM calls. I
| call OleInitialize and OleUninitialize for every COM/OLE
| call. But when Excel is exited, there is a process in task
| manager that still resides for long time. What's the
| reason for this ? Pls Suggest.
|
 
W

walter tackett

I am having the exact same problem. I am using C#, VS.NET
2003, and Office XP (Excel 2002). Furthermore, I am
having this problem when implementing the code directly
from the Microsoft KB Article: <a
href"http://support.microsoft.com/default.aspx?scid=kb;en-
us;302901">KB302901 - HOW TO: Build an Office COM Add-in
by Using Visual C# .NET</a>, so it's easy to reproduce.
Please cc any reply to me in email.

-Walter
 
W

walter tackett

Just to clarify, I'm not adding anything other than
exactly what's provided in the Microsoft documentation.
The example provided my MS has this problem! Try it.
WAT
 
W

walter tackett

I did further diagnosis and basically solved the problem,
but here is a summary of what happened for anyone else who
had this problem:

(NOTE: using MSOXP/2K2 SR1, VS.NET2K3, C#, latest Interop
assemblies, all on WinServer 2003)

1) Originally, I was working on a com add-in using
kb302901 as a starting point, but with other stuff added.
It had the unloading problem (ie, i can see a copy of
Excel in the TMan process list, but not as an application
in TMan). We will call this "the Excel zombie problem.
Uninstalling my add-in fixed the zombie problem.

2) To see if my additions had cause this problem I created
a new add-in with the same name etc, different directory,
that was an exact implementation of kb302901, nothing
added. That add-in had the same zombie problem.
Uninstalling it removed the zombie problem.

3) The add-in described in kb302901 was designed to work
with several MSO applications - so I installed the add-in
again and ran them. None of them had the zombie problem.
But Excel did.

4) I uninstalled all the other com and vba/xls add-ins in
my version of Excel. Exact same behavior as before.

5) Restarted the machine. Problem solved.

I currently have no plans to investigate the matter
further.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top