This project is read-only.


Modifying XElements during enumeration


I just implemented a fix for this problem. AwpAdmin now has *SettingsCopy properties for the XElement objects.
However, this is only good for reading, not writing, because modifying the copies doesn't modify the document. I implemented a fix in Admin class that can be used with other settings on a case-by-case basis. The problem should only happen when admins are added and removed, so I put a lock statement around code for enumerating the original and lock statements around code that adds or removes elements.
This may not work, however, so I'm making this issue here and marking as fixed.


Timiz0r wrote Oct 23, 2011 at 5:52 PM

Oh and the lock is done with the parent AwpAdmin.

Timiz0r wrote Oct 23, 2011 at 6:00 PM

Actually, put the lock on AdminsElement because locking AwpAdmin would lock future implementations.

Timiz0r wrote Oct 23, 2011 at 6:03 PM

Added locks to commands.

wrote Jan 17, 2013 at 7:10 PM

wrote May 9, 2013 at 9:01 PM

wrote May 9, 2013 at 9:02 PM

wrote Jun 6, 2013 at 1:49 AM