[Mono-dev] Too many open files when adding many embedded resources
Miguel de Icaza
miguel at novell.com
Tue Dec 14 22:58:50 EST 2010
Hello,
Building Mono 2.9 from git master, we're encountering an issue where an
> assembly with lots of embedded resources (approx 4000), where gmcs is
> throwing "Too many open files exception".
>
> The culprit seems to be that a new file handle is opened for every embedded
> resource when it's added. Mono 2.6 doesn't have this problem, so it appears
> to be a regression
>
The comment on the Save method says:
// According to MSDN docs, the stream is read during assembly save, not
earlier
So perhaps we need to change the compiler to load the assemblies in memory
after a certain number of resources have been loaded.
Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20101214/557fe8a9/attachment.html
More information about the Mono-devel-list
mailing list