B2022-001 – fixed an out of memory crash when you print more than one child procedure from the same parent procedure in the same PROMS session.
This commit is contained in:
		| @@ -179,7 +179,10 @@ namespace VEPROMS.CSLA.Library | |||||||
| 			//string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave); | 			//string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave); | ||||||
| 			string key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex,  dvi.DocVersionConfig.SelectedSlave); | 			string key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex,  dvi.DocVersionConfig.SelectedSlave); | ||||||
| 			if (!dicLookups.ContainsKey(key)) | 			if (!dicLookups.ContainsKey(key)) | ||||||
|  | 			{ | ||||||
|  | 				dicLookups.Clear(); //B2022-001 clear the dictionary each time to free up memory - out of memory fix | ||||||
| 				dicLookups.Add(key, new ROFSTLookup(this, dvi)); | 				dicLookups.Add(key, new ROFSTLookup(this, dvi)); | ||||||
|  | 			} | ||||||
| 			return dicLookups[key]; | 			return dicLookups[key]; | ||||||
| 		} | 		} | ||||||
| 		#endregion | 		#endregion | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user