>-----Original Message-----
>From: cf_nut [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 25, 2003 12:42 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [CFCDev] CFC basics
>
>
>--- "Paul Johnston" <[EMAIL PROTECTED]> wrote:
>> 3) There is no such thing as a constructor in CFC's.  To "hack"
>>  (albeit a
>> known and recommended hack) then you insert code outside 
>> <cffunction> tags,
>> but inside the <cfcomponent> tags.  This code gets run each time 
>> the CFC is
>> invoked.
>
>Almost right. The code gets run at the time the component is 
>instantiated, not every time it's invoked. Hence it's common (but 
>probably incorrect) name, the "constructor" code.
>
>Andy.
>

which brings up a question I have.  If you use <cfinvoke> to call a method in a cfc 
does the cfc actually get instantiated? So if I have a CFC with some methods and I use 
cfinvoke to call say 5 of those methods 10 times each in a single request, is there 50 
instances of this cfc now or does cfinvoke kill the instance when its done?  

I understand that using CreateObject(), this instatiates the cfc and I can store the 
ref in a var and use this ref to call any method throughout the request, but cfinvoke 
alludes me here.

Doug

>----------------------------------------------------------
>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).
>
----------------------------------------------------------
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).

Reply via email to