From 41e5e5d523d5e519a850d4c1d554d256f950cc4c Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 12 Jan 2011 21:29:47 +0000 Subject: [PATCH] - Added status message for each image - B2011-008 Changed code so that RoFst is used from cache rather than being repeatedly created --- PROMS/DataLoader/RoFst.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PROMS/DataLoader/RoFst.cs b/PROMS/DataLoader/RoFst.cs index fb5edab2..5334542a 100644 --- a/PROMS/DataLoader/RoFst.cs +++ b/PROMS/DataLoader/RoFst.cs @@ -143,6 +143,7 @@ namespace DataLoader if (File.Exists(imgfile)) { FileInfo fi = new FileInfo(imgfile); + frmMain.Status = "Processing Image " + fname; // if the roimage record exists, don't create a new one... ROImage roImg = null; using (roImg = ROImage.GetByRODbID_FileName_DTS(rodb.RODbID, imgname, fi.LastWriteTime)) @@ -160,10 +161,9 @@ namespace DataLoader // see if it's already linked to the current rofst.. Figure figure = Figure.GetByROFstID_ImageID(rofstinfo.ROFstID, roImg.ImageID); if (figure != null) return; - using (ROFst rofst = rofstinfo.Get()) - { - figure = Figure.MakeFigure(rofst, roImg, null); - } + //using (ROFst rofst = rofstinfo.Get()) + ROFst rofst = rofstinfo.Get(); // Use the cached ROFST rather than creating and disposing + figure = Figure.MakeFigure(rofst, roImg, null); } } else