void UpdateKey() { UpdateSliderControls(this); object pFrameRes, pFrameBG; m_pKey.KeyFrameGet(out pFrameRes, out pFrameBG); if (pFrameBG != null) { System.Runtime.InteropServices.Marshal.ReleaseComObject(pFrameBG); } if (pFrameRes != null) { UpdatePicture(pFrameRes); } }