Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Description of Problem:
After debug restarting included dll file is locked and cannot be overwritten.
C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(2,2): Warning: The process cannot access the file 'D:\praca\SOURCE\QMobileAndro\ClassPrint\bin\Debug\ClassPrint.dll.mdb' because it is being used by another process.
Steps to reproduce the problem:
1. Create library
2. Change something to make compiler to rebuild it.
Mono has to be restarted after every change in code
How often does this happen?
I think the file lock is held by SoftDebuggerSession. It keeps references to a set of MonoSymbolFile instances, each of which keeps a reference to a reader on a mdb file stream. I guess SoftDebuggerSession needs to dispose all its MonoSymbolFile instances when the session ends.
Fixed in git master and 3.0-series branch (will be in 3.0.3)
It is OK now, thanks!
Sorry, problem still appears :(
*** Bug 5455 has been marked as a duplicate of this bug. ***