What's the best way to destroy them?
 
I created instances in my AceLinkUser Init() method because I'm calling quite a few 
methods to load the AceLinkUser instance.
 
In my Init() method, I have two structures created in the "Camden" scope such as:
<cfset Instance = StructNew()>
<cfset Objects = StructNew()>
 
I put all data in the Instance struct and all references to the components in the 
Objects struct.  This makes it quite easy to dump all data in either struct and see 
what's going on.
 
Would it be enough to just delete the Objects struct at then end of my Init() method?  
I really won't need those instances after that?
 
Thanks
MAD
 

        -----Original Message----- 
        From: Sean A Corfield [mailto:[EMAIL PROTECTED] 
        Sent: Tue 8/12/2003 6:08 PM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: Re: [CFCDev] Session-Based CFC Instances that Include other CFC 
Instances
        
        

        On Tuesday, Aug 12, 2003, at 14:24 US/Pacific, Dawson, Michael wrote:
        > My question is, will I have any problems with those "other" instances
        > "hanging" around in my session-based scope?  I assume any instances I
        > have created in my AceLinkUser instance will also be stored in the
        > session scope as well?
        
        Only if you actually store them in AceLinkUser's instance data. If you
        just create them and discard them, they'll be garbage collected just
        like any other short-lived objects.
        
        Sean A Corfield -- http://www.corfield.org/blog/
        
        "If you're not annoying somebody, you're not really alive."
        -- Margaret Atwood
        
        ----------------------------------------------------------
        You are subscribed to cfcdev. To unsubscribe, send an email
        to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
        in the message of the email.
        
        CFCDev is run by CFCZone (www.cfczone.org) and supported
        by Mindtool, Corporation (www.mindtool.com).
        

<<winmail.dat>>

Reply via email to