Results 1 to 4 of 4

Thread: MTS Object Query

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Somerset, UK
    Posts
    93

    Angry

    I have created a MTS Object which works fine, but after the asp page has completed, the object seems to still be running in memory.

    If you look in task manager, dllhost.exe, which was created by the MTS Object is eating up alot of memory.

    Is this normal?
    Do I have to SetAbort or SetComplete?

    Thanks in advance

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    yes you have to use SetAbort and SetComplete.
    Also make sure you set your object to nothing in your asp page.
    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
    Thanks for the info.....

    What is a typical example of these commands? I take it these commands are in the COM+ Object and not used in the asp.

    How would you phrase it in the COM+ object - is it something like this??

    Public Sub Main()
    Dim oContext As ObjectContext
    Set oContext = GetObjectContext()
    '--------------------------------
    Do Stuff
    '--------------------------------
    oContext.SetAbort
    End Sub

    If i had many subroutines in the COM+ object would I have to do this for each sub??

    again, thanks for helping

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Not every sub, just in the subs/functions that are called by the ASP page do it right before you exit the function
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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