.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Database.S ave "eFileShar ingViolati on"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Well, I'd think how an empty database is created (with noDocument argument being true/false) should not have effect on ReadDwgFile() method being called and the Database being saved as logically. But I could be wrong.
Anyway, I tested with
using (Database db = new Database(false, true))
The result were the same:
Acad2009 32bit: OK;
Acad2011 32bit: getting eFileSharingViolation exception
Acad2012 64bit: getting eFileSharingViolation exception
Since it is very unlikely this would have anything to do with 32/64bit, I'd think this is bug/break in Acad 19.xx (2010/11/12)
Except for OpenFileMode.OpenForreadAndWriteNoShare in ReadDwgFile() method, the other value of FileOpenMode (OpenForReadAndAllShare, OpenForreadAndReadShare and OpenTryForReadShare) seems OK.
So, if I'd avoid to use OpenFileMode.OpenForReadAndWriteNoShare, if I have to read dwg file into database in in the same time do not want the dwg file accessed by others.
Re: Database.S ave "eFileShar ingViolati on"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
norman.yuan wrote:
Since it is very unlikely this would have anything to do with 32/64bit, I'd think this is bug/break in Acad 19.xx (2010/11/12)
A small remark. 19.xx - is AutoCAD 2013 ..., but 18.xx is 2010,2011,2012





