but as a best practice, you shouldn't be passing around references to
objects of any sort... java, component, com, or corba. If I need to
replicate an object instance, I generally loop over it with a for (foo in
bar){} type loop and create keys with the same names and values in the
secondary structure. I also have to add a little isdefined() code to handle
java null pointers when the object instance in question is of type java.
~Simon
Simon Horwith
CTO, Etrilogy Ltd.
Member of Team Macromedia
Macromedia Certified Instructor
Certified Advanced ColdFusion MX Developer
Certified Flash MX Developer
CFDJList - List Administrator
http://www.how2cf.com/
-----Original Message-----
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: 02 November 2003 20:07
To: CF-Talk
Subject: RE: Duplicate() and CFCs cause JRUN Servlet Error (500 Null)?
Yeah - I was just assuming (bad word! Maybe "hoping" is a better one)
that duplicating a structure containing a reference to a CFC would
duplicate just the reference to the CFC and not try to dupe the whole
CFC. doesn't appear to work however.
At the moment I'm trying to integrate a new, CFC-based application into
an older framework. I've got it working now with by using
structdelete() to drop the CFC reference before I dupe it. Next step is
convert the whole shebang into CFCs - then the problem will just go away
as I won't need to do this loop over the struct.
Jim Davis
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 02, 2003 2:54 PM
To: CF-Talk
Subject: RE: Duplicate() and CFCs cause JRUN Servlet Error (500 Null)?
I know the top level thing you are duplicating isn't a CFC, but
duplicate does not work correctly on CFCs, so if your struct contains
one, you can't/shouldn't call duplicate on it.
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

