Okay, here's some code to reproduce the problem (CF 4.5 SP2 Enterprise, 
Duplicate hotfix not applied):

First, make this into a custom tag called "return_query.cfm":

    <cfparam name="attributes.r_query" default="">
    <cfset q_temp = QueryNew("field1,field2")>

    <cfloop index="i" from="1" to="50">
       <cfset QueryAddRow(q_temp)>
       <cfset QuerySetCell(q_temp, "field1", "#i#")>
       <cfset QuerySetCell(q_temp, "field2", "test")>
    </cfloop>

    <cfset "caller.#attributes.r_query#" = duplicate(q_temp)>

Next, make this into a template that invokes the custom tag:

    <cf_return_query r_query="q_test">
    <cfa_dump var="#q_test#">

Here is what happened on a series of attempts on my machine:

ATTEMPT 1
No problem.

ATTEMPT 2
An error has occurred while processing the expression: 
THISTAG.HASENDTAG=CFTempOnlyForSetVariableNeverUseThisNameInYourCFMLCode122333444455555654321
 

The reason for the error is unknown.
The error occurred while processing an element with a general identifier of 
(CFA_DUMP), occupying document position (3:1) to (3:25).

ALL SUBSEQUENT ATTEMPTS
Request canceled or ignored by serverServer busy or unable to fulfill 
request. The server is unable to fulfill your request due to extremely high 
traffic or an unexpected internal error. Please attempt your request again 
(if you are repeatedly unsuccessful you should notify the site 
administrator). (Location Code: 26)

At this point I cycled services and got a Dr. Watson error in cfserver.exe.

Removing "duplicate()" fixes this.  Which is somewhat puzzling because it 
seems like the query should cease to exist before it gets to cfa_dump if 
I'm just creating a pointer.

Anyway, that's what I know.

Thanks!

Jim


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to