This commit is contained in:
parent
0e2ab11122
commit
aeb64e2479
@ -36,7 +36,8 @@ namespace DataLoader
|
||||
{
|
||||
long lTime = DateTime.Now.Ticks;
|
||||
string pth = docver.Title;
|
||||
|
||||
// if the Title is empty, return because this docversion has already been migrated.
|
||||
if (pth == null || pth == "") return TimeSpan.FromTicks(lTime);
|
||||
if (!File.Exists(pth + @"\set.dbf") || !File.Exists(pth + @"\curset.dat")) return new TimeSpan(); // Open connection
|
||||
OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + pth + ";Extended Properties=dBase III;Persist Security Info=False");
|
||||
if (convertProcedures)
|
||||
@ -45,10 +46,10 @@ namespace DataLoader
|
||||
// The INF files contain a path to a corresponding NDX file - had data with bat NDX path
|
||||
DeleteINFFiles(pth);
|
||||
_OutTran = new OutsideTransition(cn);
|
||||
frmMain.AddInfo("Before MigrateROFST{0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll);
|
||||
frmMain.AddInfo("Before MigrateROFST {0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll);
|
||||
MigrateROFST(pth, docver);
|
||||
GC.Collect();
|
||||
frmMain.AddInfo("After MigrateROFST{0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll);
|
||||
frmMain.AddInfo("After MigrateROFST {0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll);
|
||||
// Migrate library documents
|
||||
MigrateLibDocs(cn, pth);
|
||||
// Initialize Dictionaries
|
||||
|
Loading…
x
Reference in New Issue
Block a user