Results 1 to 3 of 3

Thread: Still can't figure it out!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93
    Sorry for the long question, but I want to cover it from all angles.
    After doing a resources check, I am very concerned

    I have created a simple COM+ object to check my findings.

    The COM+ object was built in VB6 and has one class module. The class module has one function:

    Public Function ReturnSomething()
    ReturnSomething = "This is from COM+"
    End Function

    I created myapp.dll and registered it in 'Component Services'

    I have called the COM+ object from my asp page using:

    Set MyCom = Server.CreateObject("Module.Function")
    Response.Write MyCom.ReturnSomething()
    Set MyCom = Nothing

    As soon as the asp page has loaded, it has returned the string from the COM+ object, but looking through task manager, dllhost.exe appears, and chews up nearly 2mb of resources. I have read that components should terminate automatically after the server has processed the page, but this does not seem to be true.

    On my original asp page, I am calling three different COM+ objects which generates three big dllhost.exe entries in the resource viewer.

    I am running the COM+ object on Windows 2000 Advanced Server.

    Can you force the COM+ object or dllhost.exe to close after the page has finished processing or have I missed something. I have checked a lot of examples and most of them don't even : Set MyCom = Nothing. Please Help!!

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Are you setting your objectcontext to nothing in the Deactivate event?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93
    My dll only contains one function, are you saying I need to add an on deactivate sub in the dll??

    what would the sub read like??

    what does setting objectcontext to nothing actually do??

    I thank you for your replies


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width