Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 39 in rl-viz: EpisodeLogger in RLVizLib opens lots of files.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
codesite-nore...@google.com  
View profile  
 More options Jun 9 2009, 10:18 am
From: codesite-nore...@google.com
Date: Tue, 09 Jun 2009 14:18:08 +0000
Local: Tues, Jun 9 2009 10:18 am
Subject: Issue 39 in rl-viz: EpisodeLogger in RLVizLib opens lots of files.

Comment #2 on issue 39 by idaroglou: EpisodeLogger in RLVizLib opens lots  
of files.
http://code.google.com/p/rl-viz/issues/detail?id=39

I think I've found the culprit:

private void makeTheFile() {
         try {
             theLogFile = File.createTempFile("episode", "log");

             //**** you should probably call: theLogFile.close()  here..

             //Make sure the file doesn't outlive the program's life
             theLogFile.deleteOnExit();
         } catch (IOException ex) {
             System.err.println("Error ::was unable to create temporary log  
file in
EpisodeLogger. Suppressing further log messages after Exception printout.");
             System.err.println(ex);
             failedWithError = true;
         }

}

I'm not quite sure whether File.createTempFile closes the newly generated  
file
descriptor, but in case it doesn't, that's what might explain why the  
system runs out
of available file descriptors (too many open files).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »