I wonder if this was causing a problem I saw after logged for 30+ days where I was getting warnings about getcwd() can't open or find parent directory? The problem went away after I logged all the way out, logged back in, and restarted Blackbox. In any case, thanks for the fix. Jeffrey Quoting Jeff Raven <[EMAIL PROTECTED]>: > Hmm. There was a memory/resource leak in the root menu code that > I cleaned up in my devel codebase a little while back. Open up > Screen.cc and jump to line 2224... you should see: > > // get the total number of directory entries > while ((p = readdir(d))) entries++; > rewinddir(d); > > char **ls = new char* [entries]; > int index = 0; > while ((p = readdir(d))) > ls[index++] = bstrdup(p->d_name); > > closedir(d); // ADD THIS LINE > > qsort(ls, entries, sizeof(char *), dcmp); > > If you add the closedir line above, the problem should go away. > > Jeff Raven -- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck
