Commit a51c3e62 by liulongfei

修复同步帧问题

parent 5b9bd409
...@@ -32,7 +32,7 @@ namespace VIZ.Framework.Connection ...@@ -32,7 +32,7 @@ namespace VIZ.Framework.Connection
if (syncHeader != null) if (syncHeader != null)
{ {
this.SyncHeader.AddRange(SyncHeader); this.SyncHeader.AddRange(syncHeader);
} }
} }
...@@ -84,6 +84,7 @@ namespace VIZ.Framework.Connection ...@@ -84,6 +84,7 @@ namespace VIZ.Framework.Connection
{ {
byte[] buffer_cache_new = new byte[this.FixedBufferSize]; byte[] buffer_cache_new = new byte[this.FixedBufferSize];
Array.Copy(this.buffer_cache, sync_index, buffer_cache_new, 0, this.FixedBufferSize - sync_index); Array.Copy(this.buffer_cache, sync_index, buffer_cache_new, 0, this.FixedBufferSize - sync_index);
this.buffer_cache = buffer_cache_new;
this.buffer_index -= sync_index; this.buffer_index -= sync_index;
continue; continue;
......
...@@ -45,7 +45,7 @@ namespace VIZ.Framework.Core ...@@ -45,7 +45,7 @@ namespace VIZ.Framework.Core
return; return;
} }
WPFHelper.BeginInvoke(() => WPFHelper.Invoke(() =>
{ {
this.PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName)); this.PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));
}); });
...@@ -73,7 +73,7 @@ namespace VIZ.Framework.Core ...@@ -73,7 +73,7 @@ namespace VIZ.Framework.Core
return; return;
} }
WPFHelper.BeginInvoke(() => WPFHelper.Invoke(() =>
{ {
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment