This commit is contained in:
Kathy Ruffing 2012-09-12 13:08:37 +00:00
parent 430c44ca41
commit fbe393828c
2 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,8 @@ namespace VEPROMS.CSLA.Library
_CountDisposed++;
_Disposed = true;
RemoveFromCache(this);
_Content = null; // to clear content from memory
_Config = null; // to clear config from memory
if (!_CacheByPrimaryKey.ContainsKey(ImageID.ToString())) return;
List<ROImageInfo> listROImageInfo = _CacheByPrimaryKey[ImageID.ToString()]; // Get the list of items
while (listROImageInfo.Contains(this)) listROImageInfo.Remove(this); // Remove the item from the list

View File

@ -72,6 +72,7 @@ namespace VEPROMS.CSLA.Library
foreach (ROImageInfo tmp in this)
{
tmp.Changed -= new ROImageInfoEvent(tmp_Changed);
tmp.Dispose();
}
}
#endregion