Right, good catch. I guess thats whats causing the error. But why should it? And why would it only cause an error sometimes?
Brook >or i or something, just be sure to use a var statement as well. > >======================================================================== >=== >Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc >(www.mindseye.com) >Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) > >Email : [EMAIL PROTECTED] >Blog : www.camdenfamily.com/morpheus/blog >Yahoo IM : morpheus > >"My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: Brook Davies [mailto:[EMAIL PROTECTED] > > Sent: Saturday, July 05, 2003 10:30 PM > > To: CF-Talk > > Subject: Re: Caching cfc objects in the application scope > > > > > > Hi Sean, > > > > The code (at line 78) is inside a cfloop. Prior to the cfloop, I > > initialize this local var (at the top of the method): > > > > <cfset var returnstruct=structnew()> > > <cfset returnstruct.cleanedstring=""> > > > > Then the cfloop looks like this: > > > > <cfloop from="1" to="#arraylen(descriptlistArray)#" index="x"> > > <!--- convert the form element descript to an array ---> > > <cfset x=listtoarray(descriptlistArray[x])> > > > > <!--- more code here ---> > > Then comes line 78: > > > > <cfset > > returnstruct.cleanedstring=listappend(returnstruct.cleanedstri > > ng,x[5])> > > </cfloop> > > > > > > It works about 99% of the time and maybe 1 out of 1000 times > > this code is > > executed it generates the error shown below. I included some > > of the other > > code so you could see that their is in fact an Array named "x" and a > > structure named returnstruct. What do you think? > > > > Brook > > > > > > > > > > > > > > > > > > > > > > > > At 08:50 PM 7/5/2003 -0700, you wrote: > > >On Saturday, Jul 5, 2003, at 18:04 US/Pacific, Brook Davies wrote: > > > > You have attempted to dereference a scalar variable of type class > > > > java.lang.Double as a structure with members. <br>The > > error occurred > > > > on line 78. > > > > > >I'd be interested to see the code around line 78... > > > > > >Sean A Corfield -- http://www.corfield.org/blog/ > > > > > >"If you're not annoying somebody, you're not really alive." > > >-- Margaret Atwood > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

