thats probably true (depends on what lies under the bufferedreader/stream, you probably mean a file?) But its generally extremely bad taste to rely on gc when you can fix it by adding a three-liner.
that would also expain why your open files become closed after System.gc() is called. However, you dont know when the gc will collect something, so better add the close call. regards leon On 9/25/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote:
Martin Gainty wrote: > I think you may have what Leon called a 'resource allocation issue' that may not be corrected until you actually look at the code > to determine who or what is grabbing all of the file handles (and not closing them) > Yeah, but if one uses BufferedReader br=new BufferedReader(...); and doesn't do br.close() that file descriptor will be automatically closed on garbage collection, when the object isn't in use any longer, right? -- Mladen Adamovic http://www.online-utility.org http://www.cheapvps.info http://www.vpsreview.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]