Added a Dispose
This commit is contained in:
parent
671c3aa137
commit
027132c1f4
@ -164,6 +164,9 @@ namespace DataLoader
|
|||||||
string dicNumber = dr["Number"].ToString();
|
string dicNumber = dr["Number"].ToString();
|
||||||
string number = TextConvert.ConvertText(dr["Number"].ToString());
|
string number = TextConvert.ConvertText(dr["Number"].ToString());
|
||||||
frmMain.UpdateLabels(1, 0, 0);
|
frmMain.UpdateLabels(1, 0, 0);
|
||||||
|
//Console.WriteLine("number {0}", number);
|
||||||
|
//Console.WriteLine("Item Key {0} List {1}", Item.CacheCountPrimaryKey, Item.CacheCountList);
|
||||||
|
//Console.WriteLine("ItemInfo Key {0} List {1}", ItemInfo.CacheCountPrimaryKey, ItemInfo.CacheCountList);
|
||||||
if (!convertProcedures || (docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.WorkingDraft && docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.Approved))
|
if (!convertProcedures || (docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.WorkingDraft && docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.Approved))
|
||||||
{
|
{
|
||||||
cont = Content.New(number, TextConvert.ConvertText(dr["Title"].ToString(), do_cvt), 0, null, ci == null ? null : ci.ToString(), dts, userid);
|
cont = Content.New(number, TextConvert.ConvertText(dr["Title"].ToString(), do_cvt), 0, null, ci == null ? null : ci.ToString(), dts, userid);
|
||||||
@ -275,6 +278,7 @@ namespace DataLoader
|
|||||||
SectItm = null; // no previous sibling for the first child node.
|
SectItm = null; // no previous sibling for the first child node.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
dv.Dispose();
|
||||||
// need section start
|
// need section start
|
||||||
if (EditSectId != 0)
|
if (EditSectId != 0)
|
||||||
{
|
{
|
||||||
@ -286,6 +290,9 @@ namespace DataLoader
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ds.Dispose();
|
ds.Dispose();
|
||||||
|
//Console.WriteLine("End MigrateProcedure number {0}", number);
|
||||||
|
//Console.WriteLine("End MigrateProcedure Item Key {0} List {1}", Item.CacheCountPrimaryKey, Item.CacheCountList);
|
||||||
|
//Console.WriteLine("End MigrateProcedure ItemInfo Key {0} List {1}", ItemInfo.CacheCountPrimaryKey, ItemInfo.CacheCountList);
|
||||||
return itm;
|
return itm;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -368,6 +375,7 @@ namespace DataLoader
|
|||||||
if (FirstItm == null) FirstItm = FrItm;
|
if (FirstItm == null) FirstItm = FrItm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//GC.Collect();
|
||||||
}
|
}
|
||||||
da.Dispose();
|
da.Dispose();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user