[Mono-dev] sharing violation on log4net

Dick Porter dick at ximian.com
Mon Nov 28 19:22:48 EST 2005


On Mon, 2005-11-28 at 17:22 -0600, Carlos Solorzano wrote:
> I am getting a sharing violation exception a lot since upgrading to mono 
> 1.1.10, the code used to work a lot more often without that exception on 
> mono 1.1.9.2

The file handling code should be the same between those two releases, as
far as I can remember.

> What its really bothering me now is that the sharing violation not only 
> ocurrs after mono is completely closed and restarted but I am even 
> getting it after system reboots, it makes no sense why that would happen.

The share data is stored in a file in ~/.wapi.  If it finds a record for
the file you are trying to open, it tries to check /proc for mono
processes that have that file open.  Look in
mono/io-layer/handles.c:_wapi_handle_check_share to see what it's doing,
and you might be able to watch it in gdb to see why it's failing.

- Dick





More information about the Mono-devel-list mailing list