two video devices with different pixelformat


https://www.nevron.com/Forum/Topic13046.aspx
Print Topic | Close Window

By cho seongho - 4 Years Ago
I have two video devices with different pixelformat, two monitors.
and each device connected a different monitor.

video device 1: AMD Radeon R7 350X
video device 2 : Intel HD Graphics 530(included in CPU)

My program executes on monitor1 and creates a new chart dynamically on monotor1 successful.

But, my program throws 'exception' when creates a new chart dynamically on monotor2.


System.AccessViolationException[StackTrace]at Nevron.Interop.Win32.NGdi32.ChoosePixelFormat(IntPtr deviceContext, PIXELFORMATDESCRIPTOR& pixelFormatDescriptor)at Nevron.GraphicsGL.l1IlllI11I.SetupPixelFormat(IntPtr hDC, Int32 flags)

By Nevron Support - 4 Years Ago
Hi Cho,
We'll try to replicate the problem and keep you posted. Meanwhile, can you check to update the drivers on those video boards - it may be a driver issue. Also, can you try whether switching to software renderer workarounds the problem:

nChartControl1.Settings.RenderSurface = RenderSurface.Bitmap;

This should fix the problem but the chart rendering will be slower.