Changeset 1531


Ignore:
Timestamp:
May 29, 2010, 4:37:50 PM (12 years ago)
Author:
Sven Rech
Message:

some quadraticsieve fixes
and a quadraticsieve sample (don't try to use it yet, you will fail)

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/QuadraticSieve/FactorManager.cs

    r1525 r1531  
    3939
    4040        public delegate void FactorsChangedHandler(List<BigInteger> primeFactors, List<BigInteger> compositeFactors);
     41        [field:NonSerialized]
    4142        public event FactorsChangedHandler FactorsChanged;
    4243
  • trunk/CrypPlugins/QuadraticSieve/PeerToPeer.cs

    r1525 r1531  
    217217                memstream.Write(dhtFactorManagerBytes, 0, dhtFactorManagerBytes.Length);
    218218                BinaryFormatter bformatter = new BinaryFormatter();
    219                 dhtFactorManager = (FactorManager)bformatter.Deserialize(memstream);
     219                try
     220                {
     221                    dhtFactorManager = (FactorManager)bformatter.Deserialize(memstream);
     222                }
     223                catch (System.Runtime.Serialization.SerializationException)
     224                {
     225                    //TODO: GuiLogMessage here
     226                    P2PManager.Remove(FactorListIdentifier());
     227                    return SyncFactorManager(factorManager);
     228                }
    220229            }
    221230
Note: See TracChangeset for help on using the changeset viewer.