Thanks David - It was my understanding that CF handles the destruction also
but I have not been able to locate a written reference for this.

As always - you get th the heart of the matter.

Dave Cahall
Vice President, Professional Services
Digitaris Technologies, Inc.
Office: 972.690.4131 ext 116
Mobil: 214.914.9947


-----Original Message-----
From: David L. Penton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 12:52 PM
To: [EMAIL PROTECTED]
Subject: RE: COM Object


You can iterate through all of the publicly available Methods, Properties,
Classes, Events, Enums, and Types available in a COM object with OLEView
(Visual Studio Tools).  What is supposed to happen is that a COM object is
supposed to be destroyed with Release() (this is a *hidden* COM interface,
seen in Visual C++ but not VB) and then the pointer should be set to a null
pointer (0).  This happens in Visual Basic, WSH, and VBScript like so:

    Set myObj = Nothing

and in JScript like this:

    myObj = null;

It was my impression that ColdFusion handled Construction/Destruction of
object references.  Is this a correct statement: "ColdFusion does Object
Pooling."  If so, you would need to decide if you want this functionality.
MTS *sort of* does object pooling (it doesn't work right in NT, and some say
the same about W2K.  I don't like MTS because if additional overhead
incurred in websites)

If you are worried about the object destruction, then in CFSCRIPT I would do
something like this (not tested - not sure if this is needed - like I said,
doesn't CF handle destruction?):

    myObj = 0;
Or
    myObj = null;  // is NULL is a valid constant in CF?????

assuming myObj was a correctly instantiated object.

hth...


David L. Penton, MCP
Consultant
"Mathematics is music for the mind, and Music is Mathematics for the
Soul. - J.S. Bach"
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Billy Cravens
Sent: Tuesday, June 19, 2001 10:30 AM
To: [EMAIL PROTECTED]
Subject: RE: COM Object


I don't know if that's entirely true.  How can you determine that all
COM objects have the  Reset() method?  Is this something built into
Microsoft's COM specification?

---
Billy Cravens
HR Systems, Sabre
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Kenaz Thomas
Sent: Tuesday, June 19, 2001 10:24 AM
To: '[EMAIL PROTECTED]'
Subject: RE: COM Object


Trying using the Reset Function. This clears up the memory and gets it
ready for the next transaction.

<CFSET whatever.reset()>


-----Original Message-----
From: Dave Cahall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: COM Object


Can anyone give some insight into how memory is cleaned up after a COM
object has been processed by the <CFOBJECT> tag?

Dave Cahall
Vice President, Professional Services
Digitaris Technologies, Inc.
Office: 972.690.4131 ext 116
Mobil: 214.914.9947


------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info:
www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info:
www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to