> Did you add some debugging? What is the value of i and the array 
> length XMLChildren when the error occurs?

So the bizarre thing is a test page, like below, does not process the contents 
of the loop:

Hello - Start<br />
<cfloop index="i" from="1" to="0">
        Howdy-Do Dah! <cfoutput>#i#</cfoutput><br />
</cfloop>
End

However, changing the previous code example to:

---------------------------------------------------- 
<cfif StructKeyExists(stcXML.country,"cities")>
        <cfif ArrayLen(stcXml.country.cities.xmlChildren) gt 0>     
                <cfloop index="i" from="1" 
to="#ArrayLen(stcXml.country.cities.xmlChildren)#">
                        <cfset CityData = stcXml.country.cities.xmlChildren[i] 
/>         
                        <cfsavecontent 
variable="STUFF">'#CityData.url.xmlText#'</cfsavecontent>
                        <cfset writeToFile(STUFF) />
                </cfloop>
        </cfif> 
</cfif>
--------------------------------------------------- 

appears to fix the problem. all I can say is wtf? this is still happening even 
when I limit the processing to one spawned thread - so there isn't another 
child thread competing against it; just a parent waiting for the child to 
finish processing with a <cfthread action="join"> statement.

Now that that error is handled I'm getting "GC overhead limit exceeded 
(java.lang.OutOfMemoryError)" while parsing the larger file (approx 187MB). I'm 
reading in the xml one line at a time, suppressing whitespace anywhere I can 
(so as not to add to the cfthread[#mythread#] output total), etc. 

Ugh. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to