When you duplicate an object it is converted from an object to a struct, and
any private variables the object had are lost. The following code
demonstrates the bug:
<cfscript>
oServer = createObject("component","wgc.common.serverObject");
</cfscript>
<cfdump var=#oServer# label="oServer">
<cfset a = oServer>
<cfdump var=#a# label="a">
<cfset b = duplicate(a)>
<cfdump var=#b# label="b">
When b is dumped, the object is shown to be no longer an object, but a
struct. Duplicate() does not duplicate the object.
***
The information in this e-mail is confidential and intended solely for the
individual or entity to whom it is addressed. If you have received this
e-mail in error please notify the sender by return e-mail, delete this
e-mail, and refrain from any disclosure or action based on the information.
****
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4