I've a problem with the gridsplitter in WPF. When I move the splitter around the chart, the lightningchart crashes on a specific notebook. It works on my computer (NVIDIA NVS 310).
Example:
Code: Select all
<Grid x:Name="gridChart" UseLayoutRounding="True">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="10" />
<RowDefinition Height="25" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="10" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<lcu:LightningChartUltimate x:Name="customChart" Grid.Row="0" Grid.Column="0">
</lcu:LightningChartUltimate>
<GridSplitter Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Background="DarkViolet" Height="10" HorizontalAlignment="Stretch"></GridSplitter>
<StatusBar Grid.Row="2" Grid.Column="0" Background="Gray" BorderThickness="1" BorderBrush="Silver">
<StatusBarItem Name="statusBarItemItemGPU" HorizontalAlignment="Right">
<StackPanel Orientation="Horizontal">
<TextBlock Name="textBlockGPU" Text="Device information">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Foreground" Value="Black"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property= "FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="DarkTurquoise"></Setter>
</Trigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</StatusBarItem>
</StatusBar>
<Label Grid.Row="2" Grid.Column="2">Blasldkjdfsdf</Label>
<Label Grid.Row="0" Grid.Column="2">Blasldkjdfsdf</Label>
<GridSplitter Grid.Row="0" Grid.RowSpan="3" Grid.Column="1" Background="Blue" Width="10" HorizontalAlignment="Stretch"></GridSplitter>
</Grid>
Code: Select all
System.AccessViolationException was unhandled
HResult=-2147467261
Message=Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
Source=SlimDX
StackTrace:
bei SlimDX.ComObject.Destruct()
bei SlimDX.ComObject.Dispose(Boolean )
bei A.XG.CG()
bei A.XG.UF(Int32 A, Int32 B)
bei Arction.WPF.LightningChartUltimate.LightningChartUltimate.FBB(Double A, Double B)
bei Arction.WPF.LightningChartUltimate.LightningChartUltimate.ArrangeOverride(Size availableSize)
bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
bei System.Windows.UIElement.Arrange(Rect finalRect)
bei System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
bei System.Windows.UIElement.Arrange(Rect finalRect)
bei MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
bei System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
bei System.Windows.UIElement.Arrange(Rect finalRect)
bei System.Windows.Documents.AdornerDecorator.ArrangeOverride(Size finalSize)
bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
bei System.Windows.UIElement.Arrange(Rect finalRect)
bei System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
bei System.Windows.UIElement.Arrange(Rect finalRect)
bei System.Windows.Window.ArrangeOverride(Size arrangeBounds)
bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
bei System.Windows.UIElement.Arrange(Rect finalRect)
bei System.Windows.ContextLayoutManager.UpdateLayout()
bei System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
bei System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
bei System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
bei System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
bei System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Windows.Threading.DispatcherOperation.Invoke()
bei System.Windows.Threading.Dispatcher.ProcessQueue()
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.Run()
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei System.Windows.Application.Run(Window window)
bei System.Windows.Application.Run()
bei LightningChartSplitter.App.Main() in c:\Users\X\Documents\Visual Studio 2013\Projects\LightningChartSplitter\LightningChartSplitter\obj\Debug\App.g.cs:Zeile 0.
InnerException:
HP Elitebook 8440p
Graphic card:
Intel HD(R) Graphics
Vendor ID: 0x8086
Render device created: Yes
Pure device: Yes
Fast vertex format: No
Hardware vertex processing: Yes
Anti-aliasing: No
Shader model 3: Yes
Index buffers: 32-bit
Support arbitrary texture size: Yes
Texture max size (WxH): 8192x8292
Can you help me or do you need more information?
Raphael