Skip to main content
Participant
Jul 10, 2008 6:19 AM UTC
Question

Garbage Collection in Coldfusion


Hi !!

I have a cfc object which has been assigned to a session variable. This cfc has multiple arrays & a query object as its members. If I write

<cfset Session.CFCObject = "">

Will it release memory used by the members of the CFC ? If not, kindly let me know the right way.


Thanks


    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Inspiring
    Jul 10, 2008 6:31 AM UTC
    Maybe it will lessen but not totally gone. Session.CFCObject will still be there. To totally remove try:

    <cfset StructDelete(SESSION, "CFCObject")>
    Translate
    Participant
    Jul 10, 2008 7:09 AM UTC
    Thanx dongzky , will try it out
    Translate