On Mon, 06 Sep 2004 19:29:04 -0400, Peter J. Farrell <[EMAIL PROTECTED]> wrote: > Check this out: To pass the CFCATCH variable to a UDF expecting a > structure you have to duplicate() it. > > http://www.rewindlife.com/archives/000135.cfm
Not entirely true. There are cases where you cannot duplicate CFCATCH. The real issue is that CFCATCH is NOT A STRUCT so you shouldn't try to pass it to a function that expects a struct. Sometimes CFCATCH is a full-blown Java object. Do the docs actually say CFCATCH is a struct? I don't believe so. I think they simply define some struct-like behavior for it. > It seems to be true if you want to return cfcatch from a function from a > try/catch block from within the function. It works fine if you say returntype="any" (which is what I did for my thread safety test - I created several recursive and mutually recursive function calls to see if multiple <cfcatch> blocks could be active at the same time without interfering - they can - and in particular if multiple invocations of the SAME <cfcatch> block could be active with unique cfcatch variables - again, they can). > This makes sense and I'll institute this as policy until I run into > problems. Just remember that CFCATCH is type="any" and not type="struct"... -- Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
