Hello Jeffry, Well, I wish there is a destructor method...at least I am not aware of one. In C++ there is a destructor method because it is not automated; whereas, in Java the garbage collection is automated.
There must be a way to deal with these hanging and vague pointers to the objects. thanks again for the reply...Kinley >From: Jeffry Houser <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: CF-Talk <[EMAIL PROTECTED]> >Subject: Re: Java and Coldfusion 4.5 using memory >Date: Sun, 25 Nov 2001 11:53:35 -0500 > > I can't claim to be an expert, in fact I've never tried anything like >this. > But, from a theoretical standpoint. shouldn't most ( all?) Java objects >have a destructor method? Perhaps you should be running the destructor >method instead of blanking out the pointer. > ><cfset pointtothisobject = objectname.destructor()> > >At 08:47 AM 11/25/2001 -0800, you wrote: > >A question for those java - Coldfusion experts: > > > >When an object is instantiated with the statement > > > ><cfset pointToThisObject=objectName.methodName()>, > > > >the 'pointToThisObject' contains only the pointer address to the > >instantiated object in memory. > > > >It appears that Coldfusion is not releasing the memory space and leaving >a > >"vague" reference to the java object. Being that this may be the case, >the > >memory is strinking which is causing a 'java.lang.OutOfMemoryError' to > >occur. The java memory space is strinking when multiple users (client > >workstations) are using the application. > > > >Is there a way to destroy or release this memory space? I have tried ><cfset > >pointToThisObject = ""> but it only clears the pointer but not the memory > >space. > > > >Also, would you know how to determine what the memory usage would be >within > >Coldfusion during the before and after an object is instantiated? > > > >Please help...I would hope that Coldfusion would be able to handle its >own > >garbage collection when referencing java objects. > > > >talk soon - Kinley > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists