Changed ROImage to use GetJustROImage so that the ROFST lookup is not loaded for each ROImage.

This commit is contained in:
Rich
2017-05-24 13:00:33 +00:00
parent 26ad9239f2
commit aa21c16ebb
6 changed files with 77 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ namespace VEPROMS.CSLA.Library
int pcount = 1;
foreach (int id in imageIds)
{
using (ROImage ro = ROImage.Get(id))
using (ROImage ro = ROImage.GetJustROImage(id))//Don't load figures or ROFST - Causing Memory Crash
{
string nm = ro.FileName;
OnCompressAllExistingImages(null, new ROImageInfoCompressionEventArgs(pcount++, nm));