public static long GetEntryResult(IntPtr entry) { do { var result = default(long); if (ArchiveEntry.GetEntryResult(entry, out result)) { return(result); } Thread.Yield(); Thread.Sleep(5000); Thread.Yield(); } while (true); }