PowerPnt.exe persistent in memory even after closing PPT App.

G

Guest

I am into PowerPoint automation, using VB6.

I have a very strange problem. I m not sure why this is happening. I have a
dll in which I have put some functions to automate the PowerPoint. A "Custom
Toolbar Button" (present in PowerPoint) initiates a macro in PowerPoint VBA,
which in turn calls functions from this dll. Now, once I have called the
function from dll and then I close the PowerPoint, I can still see the
PowerPnt.exe process in the Task Manager.

Further I tried to debug this problem. I opened the VB6 dll project which is
supposed to open PowerPoint as the external Exe when I run the project (for
debugging purpose). I did the same process of clicking the "Custom Toolbar
Button", calling function (which goes fine). Then when I close the PowerPoint
I see the PowerPnt.exe still in Task manager. My VB6 project still shows that
it is in run mode (the Run button is disabled and stop button is enabled in
VB6). When I "Stop" the project the PowerPnt.exe goes away from the Task
Manger. So, it seems like the dll is holding the PowerPoint (as an object or
so). It is not disconnecting itself from the PowerPoint when I close the PPT
Application. I have checked the Macro; I am destroying the object that I
created to access the dll function by setting that variable as "Nothing".

Can anyone please give an idea why this problem is happening and what I can
do to resolve it. Any kind of help will be greatly appreciated.

Thanks a lot in advance.
 
S

Shyam Pillai

As long as you are destroying all references and clearing out the memory you
shouldn't experience it. However it is difficult to recommend anything
without looking at the code.

--
Regards.
Shyam Pillai

Handout Wizard
http://skp.mvps.org/how
 

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