Results 1 to 5 of 5

Thread: Com+ Object not shutting down

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93
    Why does my com+ object not shut down?

    I have created an active x dll from visual basic 6 and registered it through component service on windows 2000 advanced server.

    I call the object in my asp script and looking through component services the ball starts spinning.

    The default time out is left at 3 minutes but after this time the ball is still spinning!!

    I am using setcomplete to the objectcontext in the dll and set my varible in the asp script to nothing and it still happening.

    I have tried a third party dll but this is doing exactly the same. Is there anything else I could try??


  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    I've just done some testing on this with some of my COM+ components, and they shut down ok.......

    can you post the DLL so I can try starting and stopping it here?
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93
    Thanks Crispin, if you could...

    I have attached (hopefully) testpool.dll

    It has one function Called SayHello()

    Option Explicit

    Public Function SayHello() As String
    Dim objContext As ObjectContext
    Set objContext = GetObjectContext
    SayHello = "Hello there"
    objContext.SetComplete
    End Function


    and I'm calling it from asp as:

    <%
    Set Com = Server.CreateObject("TestPool.pool")
    REsponse.Write Com.SayHello()
    Set Com = Nothing
    %>

    Attached Files Attached Files

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93
    Could I try one of your Com+ Objects on my server to see if it stops spinning??

  5. #5
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    yeah, of course, most of these are from Ted Pattisons book, my ones are not finished yet, im trying to provide a set of internal components that provide simple functions for in-house testing like string functions and recordset functions for all the "not quite so techies", im also trying to incorporate distributed transactions between SQL Server and Oracle which is about as much fun as a Great White shark in your bathtub!

    heres a couple for you to start with.

    I just finished testing your component - I set the timeout to 1 minute, said hello and then waited (I hit f5 after 1:10) and it had stopped.....
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

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