Skip to main content
Participant
July 10, 2008
Question

Garbage Collection in Coldfusion

  • July 10, 2008
  • 1 reply
  • 312 views

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 has been closed for replies.

    1 reply

    Inspiring
    July 10, 2008
    Maybe it will lessen but not totally gone. Session.CFCObject will still be there. To totally remove try:

    <cfset StructDelete(SESSION, "CFCObject")>
    Participant
    July 10, 2008
    Thanx dongzky , will try it out