If CFCs are passed by reference, the following code only creates 1 object in memory:

 

      <cfset variables.Object=createobject(MyCFC) />

 

      <cfset session.Object= variables.Object />

 

But what happens if the subsequent page request asks for session.Object?

 

      <cfdump var=”#session.Object#” />

 

Isn’t session.Object referencing a non-existent object since variables.Object was part of the previous request?

 

Baz

 

 

----------------------------------------------------------
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]

Reply via email to