B2017-060 the update of RO usages of an imported procedure, if RO was not found in the ROUsage table, the import would be aborted instead of converting the invalid RO to text
B2017-060 the update of RO usages of an imported procedure, if RO was not found in the ROUsage table, the import would be aborted instead of converting the invalid RO to text. Part of B2017-060 fix were we need to prevent the content text from being disposed when Item is used in a Using statement.
This commit is contained in:
1 parent
95d7cbbf98
commit
8b5e7e01ad
4 files changed
+68
-30
No files matched your search
@@ -733,13 +733,20 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
_CountFinalized++;
|
||||
}
|
||||
private bool _DisposeOfContent = true; // part B2017-060 when Item is in a Using statement, the content was being freed after it's use, we needed the content to stick around
|
||||
|
||||
public bool DisposeOfContent
|
||||
{
|
||||
get { return _DisposeOfContent; }
|
||||
set { _DisposeOfContent = value; }
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
if (_Disposed) return;
|
||||
_CountDisposed++;
|
||||
_Disposed = true;
|
||||
RemoveFromDictionaries();
|
||||
if (_MyContent != null)
|
||||
if (_MyContent != null && DisposeOfContent)
|
||||
{
|
||||
_MyContent.Dispose();
|
||||
_MyContent = null;
|
||||
|
||||
Reference in new issue
Block a user