public void jpeg_abort() { /* Reset overall state for possible reuse of object */ if (IsDecompressor) { m_global_state = JpegState.DSTATE_START; /* Try to keep application from accessing now-deleted marker list. * A bit kludgy to do it here, but this is the most central place. */ jpeg_decompress_struct s = this as jpeg_decompress_struct; if (s != null) s.m_marker_list = null; } else { m_global_state = JpegState.CSTATE_START; } }