Example #1
0
        public void DisposePortableExecutableData()
        {
            if (_pdb != null)
            {
                _pdb.Dispose();
                _pdb = null;
            }

            if (_pe != null)
            {
                _pe.Dispose();
                _pe = null;
            }
        }
Example #2
0
        public void DisposePortableExecutableData()
        {
            if (_pdb != null &&
                _pdb.IsValueCreated &&
                _pdb.Value != null)
            {
                _pdb.Value.Dispose();
            }
            _pdb = null;

            if (PE != null)
            {
                PE.Dispose();
                PE = null;
            }
        }