> We reference a COM Object on an MTS server using CFOBJECT.  
> According to the CF5 documentation, CF is supposed to 
> release its last hold on the object once the page is 
> finished loading, but the administrator running the
> MTS server says that MTS doesn't see that the object 
> has been released, consequently we can have hundreds 
> of instantiated objects on the MTS server.
> 
> Is there anyway to make CF automatically release an object?  
> Does anyone have any experience with this?

By default, CF releases COM objects when the page that references the object
ends. However, MTS makes things more complicated than that. One of the
primary purposes of MTS is to act as an object broker - it keeps objects in
memory beyond their use within the client application (in this case, CF).

I'm not an MTS expert by any means, but I suspect that there may be some
code within your specific MTS object which is keeping it alive beyond its
normal scope. Also, CF doesn't support all of the functionality of MTS, such
as the ability to mark a page as transactional for the purpose of MTS
objects within the page (ASP, for example, does have this ability, since it
was designed with MTS in mind).

As Mike Townend mentioned, you might try explicitly overwriting the variable
referencing the object, and see if that works. However, my guess is that it
won't. I'd be very interested in learning how this gets resolved, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to