DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Humberto Morales Guest

    COM+ and the garbage collection

    I am an object that is using the COM+ object pooling service. My question is
    why doesn't my destructor get called when I shutdown the application? I have
    also tried implementing a Dispose function and that also doesn't get called.

    -H



  2. #2
    Jason Guest

    Re: COM+ and the garbage collection


    I am a COM+ pooling service. When an application creates an instance of you,
    I get the call. You are not created in the application. You are created
    by me. I made you, and only I can destroy you. When you are not being used,
    I store you in a pool.

    When the application shuts down, you just get returned to the pool, not destroyed.
    You are doomed to an eternity of servitude, and I am your master! Bwu-ha-ha-ha!

    Well, at least it isn't a pool of fire and brimstone. :-)

    "Humberto Morales" <humberto_morales@hotmail.com> wrote:
    >I am an object that is using the COM+ object pooling service. My question

    is
    >why doesn't my destructor get called when I shutdown the application? I

    have
    >also tried implementing a Dispose function and that also doesn't get called.
    >
    >-H



  3. #3
    Humberto Morales Guest

    Re: COM+ and the garbage collection

    Even so when I shutdown the COM+ app it should destroy all the objects in
    the pool, right?

    "Jason" <jason@creative_nospam_corp.com> wrote in message
    news:3cc02bb4$1@10.1.10.29...
    >
    > I am a COM+ pooling service. When an application creates an instance of

    you,
    > I get the call. You are not created in the application. You are created
    > by me. I made you, and only I can destroy you. When you are not being

    used,
    > I store you in a pool.
    >
    > When the application shuts down, you just get returned to the pool, not

    destroyed.
    > You are doomed to an eternity of servitude, and I am your master!

    Bwu-ha-ha-ha!
    >
    > Well, at least it isn't a pool of fire and brimstone. :-)
    >
    > "Humberto Morales" <humberto_morales@hotmail.com> wrote:
    > >I am an object that is using the COM+ object pooling service. My question

    > is
    > >why doesn't my destructor get called when I shutdown the application? I

    > have
    > >also tried implementing a Dispose function and that also doesn't get

    called.
    > >
    > >-H

    >




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links