Dllhost process is not terminated after com+ appl has ended


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Dllhost process is not terminated after com+ appl has ended

  1. #1
    Join Date
    Dec 2006
    Posts
    8

    Question Dllhost process is not terminated after com+ appl has ended

    Hi all!

    The major part of my client/server dcom app is working now, except for the dllhost processes that are created to host my activex dll server component. Although the application does not generate any error and is removed from the Active Tasks in dcomcnfg (COM+ explorer) as it should, the dllhost.exe process for this particular server app is not being killed (what I would expect).

    This would not be the biggest problem, but it eats memory and worse, when shutting down the machine, I get this message 'Shutting down dll.host.exe' with this annoying progressbar and the button 'End now' for every instance of dllhost that the machine has been using for this application.

    What can cause this out-of-sync between COM and the task manager? ANd how do I solve this to terminate automatically?

    Thanks in advance!

    Guido Vrijdag

  2. #2
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    maybe your application is not ended, don't show your application in the tasklist doesn't mean essentialy that your application has ended , and in process list too ... maybe still running as service .
    the best method to know your problem where, put in your _unload event the END statment ... and hence it may completly close your application saftley or it may show you a "problem with xyz.exe and need to close, end task" box .. and in this case you need to look again into your unload method , maybe u mess to close a connection , to unload a form, class, or a component or any thing similar .
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  3. #3
    Join Date
    Dec 2006
    Posts
    8
    Hi Amahdy!

    Thank you for your quick response. Unfortunately, I am afraid that I was not clear enough about the task list. I did not mean the task list of Windows, but the one in the COM+ Explorer (dcomcnfg.exe). DLLHost.exe is hosting my activex dll, which is not even allowed to have the END statement. And because it is a dll, it should die whenever no references to any object exist anymore (and I can assure you: there aren't any). So COM+ sees there are no references anymore (correct), but Windows 'refuses' to kill the dllhost.exe, while it is not hosting my dll anymore.

    Any ideas?

    Guido Vrijdag

  4. #4
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    I'm not sure about this so r u sure that " it should die whenever no references " ? or u must make it die ?
    and I don't know really how to make a legal killing for the dllhost, but just about the first topic, put in the class_terminat() a msgbox "I'm goind to die !" , and see if u can see this msgbox when there is no refrence or nop to ensure that it works as u appreciate .
    Hope this helps.
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

Similar Threads

  1. HowTo - Min And Max A Form By Process!
    By Jugg in forum VB Classic
    Replies: 3
    Last Post: 04-03-2006, 01:40 AM
  2. Is process terminated?
    By David Garrido in forum VB Classic
    Replies: 0
    Last Post: 12-20-2000, 03:18 AM
  3. Is process terminated?
    By David Garrido in forum VB Classic
    Replies: 0
    Last Post: 12-20-2000, 03:18 AM
  4. Replies: 5
    Last Post: 07-07-2000, 03:04 PM
  5. Replies: 1
    Last Post: 04-21-2000, 12:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center