示例#1
0
 public void Dispose()
 {
     if (peImage != null)
     {
         peImage.Dispose();
     }
 }
示例#2
0
        public byte[] Unpack()
        {
            byte[]    data      = null;
            MyPEImage myPeImage = null;

            try {
                myPeImage = new MyPEImage(peImage);
                data      = Unpack2(myPeImage);
            }
            catch {
            }
            finally {
                if (myPeImage != null)
                {
                    myPeImage.Dispose();
                }
            }
            if (data != null)
            {
                return(data);
            }

            if (shouldUnpack)
            {
                Logger.w("Could not unpack file: {0}", peImage.FileName ?? "(unknown filename)");
            }
            return(null);
        }
示例#3
0
 void FreePEImage()
 {
     if (peImage != null)
     {
         peImage.Dispose();
     }
     peImage = null;
 }
示例#4
0
 public void Dispose()
 {
     if (peImage != null)
     {
         peImage.Dispose();
     }
     peImage = null;
     reader  = null;
 }
示例#5
0
		public byte[] Unpack() {
			byte[] data = null;
			MyPEImage myPeImage = null;
			try {
				myPeImage = new MyPEImage(peImage);
				data = Unpack2(myPeImage);
			}
			catch {
			}
			finally {
				if (myPeImage != null)
					myPeImage.Dispose();
			}
			if (data != null)
				return data;

			if (shouldUnpack)
				Logger.w("Could not unpack file: {0}", peImage.FileName ?? "(unknown filename)");
			return null;
		}