var pMd = new MapDocumentClass();
pMd.Open(RevisionState.CurrentBackupMXDPath_.BSValue());
var pMap = pMd.Map[0];
pMd.Close();
Marshal.FinalReleaseComObject(pMap);
pMap = null;
Marshal.FinalReleaseComObject(pMd);
pMd = null;
GC.Collect();
GC.WaitForPendingFinalizers();
Please see the code above. I found that memory usage increased so much while executing var pMap = pMd.Map[0];. However, I cannot release these memory even I run all the rest of the statement. May I know how can I release IMap reference? Thanks!