Results 1 to 3 of 3

Thread: arrghh! - still need help

  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
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Nope, this should be fine. I've always used the regsvr control - never done this any other way.

    If you need help, look at this thread :
    http://forums.vb-world.net/showthrea...light=register

    Look at this thread to see if the Dll register worked :
    http://forums.vb-world.net/showthrea...light=register

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93
    Thanks, but whats the advantage of using 'Component Services' in Windows 2000

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