> What I'm concerned about is releasing objects properly so they can be 
> immediately
> collected by the JVM garbage collector.  I know that closing the "out" object 
> will release it
> but should I also close the response and context objects?  And how do I 
> release the
> myWorkBook object?  I don't want it hanging around if the user decides to go 
> to lunch.

Since your variables are in the local Variables scope, their
references will be destroyed when the page finishes execution. They'll
then be deleted from the Java heap when the garbage collector runs,
just like any other CF variables in the local Variables scope.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316722
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to