> Inside of loops in heavy lifting / long running processes ( scheduled pages > ), we would use: > > structDelete( variables, "foo" ); > This would, in theory, remove the pointer to the location in memory and > allow for garbage collection.
What makes you think that garbage collection was occurring during that time? > I have tried moving the processing inside of a cffunction and using a > similar trick on the local scope. > var objOrder = .... > .... > structDelete( local, "foo" ); > > structDelete on variables and local do *not work* in *ColdFusion 9*. If your goal is simply to delete a variable, you can create a structure within the variables scope and delete the contents of that, right? > This, in theory, would be a solution if ColdFusion 9 only allows Garbage > Collection at the *end of each request*. ( I sure hope this isn't true ) Why are you worrying so much about garbage collection? Have you observed a specific problem related to garbage collection? CF doesn't really control garbage collection directly. That's controlled by the JVM in which CF runs, using the settings of that JVM's configuration file. In addition, you can manually invoke the GC from within your code. But you shouldn't have to do that for a specific CF program - instead, you configure your JVM's settings based on the aggregate of programs you've written, and the problems that you experience under load. > Any Ideas? > Maybe cfthread? > > I know that others out there must have encountered this same problem and > come up with a solid solution. > Please share your tricks. You can certainly handle long-running processes via cfthread or a variety of other approaches. But you haven't really defined a problem here. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349212 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

