[Gtk-sharp-list] Too many open files
08 Dec 2002 12:14:18 +0100
On Ne, 2002-12-08 at 00:31, Miguel de Icaza wrote:
> On Sat, 2002-12-07 at 14:36, Martin Baulig wrote:
> > for some strange reason, gtk#'s api generation code opens way too many files.
> > On my system, the default limit on open file descriptors is 1096 and compiling
> > gtk-sharp/api aborts with an "no more open files" error message. After increasing the
> > limit to 8192, it works fine.
> This is interesting, Radek Doulik reported this, but he tracked this
> down to be the refcount on the WapiHandle starting at zero instead of
> starting at -1.
Oh, and it was rather so, that at time file descriptor should be
released (call close (fd)), the refcount was -1 instead of 0. Maybe you
meant "instead of starting at 1"?