Changeset 1223


Ignore:
Timestamp:
Feb 28, 2010, 9:55:57 PM (12 years ago)
Author:
arnold
Message:

P2PManager: Invoke --> BeginInvoke for QuickWatchPresentation
DistributableKeyPatternJob: OnLastResultReceived-Event bug fixed

Location:
trunk/CrypPlugins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeyPatternJob/DistributableKeyPatternJob.cs

    r1199 r1223  
    210210            //else
    211211            //    throw(new Exception("Received result from a job, which isn't in 'patternsInProgress' List."));
    212             if (this.patternPool.Count() == 0 && this.allocatedPatterns.Count == 0 && this.patternBuffer.Count == 0)
     212            if (this.patternPool.Count() == 0 && this.patternsInProgress.Count == 0 && this.allocatedPatterns.Count == 0 && this.patternBuffer.Count == 0)
    213213            {
    214214                if (OnLastResultReceived != null)
  • trunk/CrypPlugins/PeerToPeerManager_NEW/P2PManager_KeyPattern.cs

    r1220 r1223  
    220220            if (QuickWatchPresentation.IsVisible)
    221221            {
    222                 ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     222                ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.BeginInvoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
    223223                {                   
    224224                    //((P2PManagerPresentation)QuickWatchPresentation).txtTimeInProcess.Text = "not started";
     
    234234            if (QuickWatchPresentation.IsVisible)
    235235            {
    236                 ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     236                ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.BeginInvoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
    237237                {
    238238                    // calculate and display current processing time span
     
    300300            if (QuickWatchPresentation.IsVisible)
    301301            {
    302                 ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     302                ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.BeginInvoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
    303303                {
    304304                    ((P2PManagerPresentation)QuickWatchPresentation).txtProgressInPercent.Text = "" + Math.Round(progressInPercent, 2) + "%";
     
    357357                if (QuickWatchPresentation.IsVisible)
    358358                {
    359                     ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     359                    //((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     360                    ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.BeginInvoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
    360361                    {
    361362                        try
     
    380381                if (QuickWatchPresentation.IsVisible)
    381382                {
    382                     ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     383                    //((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.Invoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
     384                    ((P2PManagerPresentation)QuickWatchPresentation).Dispatcher.BeginInvoke(DispatcherPriority.Normal, (SendOrPostCallback)delegate
    383385                    {
    384386                        if(((P2PManagerPresentation)QuickWatchPresentation).PrgChunks != null)
  • trunk/CrypPlugins/PeerToPeerPublisher/P2PPublisherBase.cs

    r1220 r1223  
    9494                //Stop(PubSubMessageType.PublisherRivalryProblem);
    9595                cycleCheckCount++;
    96                 GuiLogging("Can't assume functionality of an alive Publishers. So waiting till the other Manager leaves the network! Cycle: " + cycleCheckCount, NotificationLevel.Warning);
     96                GuiLogging("Can't assume functionality of an alive Publishers. So waiting till the other Manager leaves the network! Cycle: " + cycleCheckCount, NotificationLevel.Info);
    9797                // wait one second longer with every trial
    9898                Thread.Sleep(cycleCheckCount * 1000);
Note: See TracChangeset for help on using the changeset viewer.