Page 1 of 1

System.Runtime.InteropServices.COMException when make chart

PostPosted: Mon Jul 30, 2018 12:32 pm
by bool001
Hi, I test my application on a laptop, when create a chart the UI is STUCK. And I get a exception with my bug reportor, below it is:

OS: Windows
Windows: 6.3.17134.0
Date: 2018-07-30T11:52:55.2269912Z

System.Runtime.InteropServices.COMException: UCEERR_RENDERTHREADFAILURE (HRESULT:0x88980406)
在 System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
在 System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
在 System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
在 System.Windows.Interop.HwndTarget.OnWindowPosChanging(IntPtr lParam)
在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

And below is my laptop information:
CPU: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz 2.50 GHz
RAM: 8.00 GB (7.48 GB Available)

Re: System.Runtime.InteropServices.COMException when make ch

PostPosted: Mon Jul 30, 2018 5:35 pm
by ArctionPasi
Hi,

most likely reason for this, is to forget to Control.Invoke (WinForms) or Dispatcher.Invoke (WPF) when updating data from background thread to chart. For correct usage, please see ExampleThreadMultiChannel example in the demo applications.

Re: System.Runtime.InteropServices.COMException when make ch

PostPosted: Thu Aug 02, 2018 3:15 am
by bool001
ArctionPasi wrote:Hi,

most likely reason for this, is to forget to Control.Invoke (WinForms) or Dispatcher.Invoke (WPF) when updating data from background thread to chart. For correct usage, please see ExampleThreadMultiChannel example in the demo applications.


Hi, thank you.
I provide some details:
1. My program use the LightingChart WPF lib.
2. There is no problem that run my program on other computers.
3. When run LightingChart official demo on this laptop, also occur same problem that it get stuck when create charts.
4. LightingChart Winform lib is OK, but WPF libs(bindable, Semi-bindable, non-bindable) all occur the problem.

Below is the detail of my laptop:
Manufacturer: LENOVO,
DeviceModel: 20J6A012CD,
TotalPhysicalMemoryInGB: 7GB,
OSVersion: Microsoft Windows NT 6.2.9200.0,
Is64BitOS: True,
ProcessorCount: 4,
CpuInfo: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz,
VideoControllerInfo: Intel(R) HD Graphics 630

I'm very grade to upload the demonstrate video if you leave me a mail address.

Re: System.Runtime.InteropServices.COMException when make ch

PostPosted: Mon Aug 06, 2018 7:03 am
by ArctionPasi
Hello,

so it seems to be a computer-specific problem. First, make sure all Windows Updates have been installed, and Intel drivers updated.

If the problem doesn't solve, please send us email on support [at} arction.com, and we'll give more detailed support there :)

Re: System.Runtime.InteropServices.COMException when make ch

PostPosted: Sat Aug 11, 2018 4:31 am
by bool001
My laptop has two video card drivers. Once disabled one, the chart is available now. I don't why. I look forward to get more detail about this problem. thank you!

Re: System.Runtime.InteropServices.COMException when make ch

PostPosted: Tue Jan 29, 2019 11:13 am
by warnerwanton
When an error occurs during object creation, a COMException (defined in System.Runtime.InteropServices) is thrown. The UnknownWrapper class is a helper class designed to be exposed to COM as a VARIANT. When you use the late-binding mechanism, you can avoid this behavior if you pass the parameters as UnKnownWrapper to methods that have parameters of type IUnKnown. The UnKnownWrapper constructor initializes a new instance of the UnknownWrapper class with the object that will be wrapped.