1) why do you want to explicitly kill these CFC instances ? if they're
stored in a persistant scope (session, application, server**) I'd
understand, but if they're part of a request their references will be
destroyed when the page finishes loading and they'll be garbage
collected soon enough. trust in the Java GC
2) I vote createObject() (thanx to my old ASP roots:
server.createObject(), etc) but some smart ppl on this list have done
some really funky things with cfinvoke....(check the archives)
my 2c
barry.b
(** cheat and treat them like structs with removing keys from the scope)
On 3/9/06, Ung, Seng <[EMAIL PROTECTED]> wrote:
> Hi:
> from my test.cfc I do have the following function.
> <cfcomponent >
> <cffunction name="fnhello" returntype="string" access="private">
> <cfset var x="hi">
> <cfreturn x>
> </cffunction>
> </cfcomponent >
> from my cfm, I called my test.cfc by doing the folloing code
> <cfset o=createObject("component", "test")>
> <cfset oFn=o.fnhello()>
>
> Question number 1?
> Once, I called or created an object named "o", Can I destroy the object by
> doing so? or by other methods?
> <cfset o=null>
>
> Question number 2?
> Would you used "cfinvoke" or cfobject/createObject to call your cfc?
>
> thanks
> Seng
>
>
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]