Add separate counts for Errors, Warnings and Information
Cleanup memory after transition processing Adjusted width of Error Count Added memory usage to output Added Stored Procedure GetJustFormat Reduce Memory Use Removed extra using statement
This commit is contained in:
@@ -180,14 +180,17 @@ namespace DataLoader
|
||||
}
|
||||
if (frType > 0)
|
||||
{
|
||||
parentItem.MyContent.ContentParts.Add(frType, item);
|
||||
if (!parentItem.MyContent.IsSavable) ErrorRpt.ErrorReport(parentItem.MyContent);
|
||||
parentItem.MyContent.Save();
|
||||
using (Content c = Content.Get(parentItem.ContentID))
|
||||
{
|
||||
c.ContentParts.Add(frType, item);
|
||||
if (!c.IsSavable) ErrorRpt.ErrorReport(c);
|
||||
c.Save();
|
||||
}
|
||||
}
|
||||
|
||||
// Remove styles that user entered but are automatically done via the format
|
||||
string tstr = null;
|
||||
using (ItemInfo myInfo = item.MyItemInfo) // do this so that ItemInfo doesn't stay in cashe
|
||||
using (ItemInfo myInfo = item.MyItemInfo) // do this so that ItemInfo doesn't stay in cache
|
||||
tstr = myInfo.RemoveRtfStyles(content.Text, fmt);
|
||||
if (tstr != content.Text)
|
||||
{
|
||||
|
Reference in New Issue
Block a user