hello
I have some Error
i use this
OS : Windows10 x64, GPU : GeForce 840M, ChartVersion : 8.2.1.4001
VisualStudio 2017, X86 build(User want x86 program)
When I change the Chart Size. Then My Chart Have to Exception message In thread loop
Exception log is this
'System.AccessViolationException'(Arction.DirectX.dll)
'SharpDX.SharpDXException'(Arction.DirectX.dll)
HREsult : 0x887A0001
Modul: ShartDX.DXGI
APICode : DXGI_ERROR_INVALID_CALL/InvalidCall
I need help...
Size change Exception
Moderator: Queue Moderators
-
- Posts: 557
- Joined: Mon Mar 14, 2016 9:22 am
Re: Size change Exception
Hello,
If you using multiple thread, please note that LightningChart updates must be done in UI thread. We don't guarantee operation otherwise. That is the way in WinForms and WPF, practically for all UI controls. All UI stuff must be updated in UI thread, otherwise the application is prone to crashing or doing all kind funny stuff.
In Winforms, use Control.Invoke(), in WPF, use Dispatcher.Invoke() - to execute the specified delegate synchronously on the main thread. Modification of Chart’s properties, data collection/calculation could be done in other Threads.
Therefore, Chart.EndUpdate() MUST be called in UI thread. At least the one that actually renders it (no other pending BeginUpdates). Otherwise the DirectX rendering itself can't work, and it will crash the chart or even the whole system.
If it is not UI thread problem, we would need full stacktrace and whole app (whenever it is possible) send to Arction's support account.
All the best.
If you using multiple thread, please note that LightningChart updates must be done in UI thread. We don't guarantee operation otherwise. That is the way in WinForms and WPF, practically for all UI controls. All UI stuff must be updated in UI thread, otherwise the application is prone to crashing or doing all kind funny stuff.
In Winforms, use Control.Invoke(), in WPF, use Dispatcher.Invoke() - to execute the specified delegate synchronously on the main thread. Modification of Chart’s properties, data collection/calculation could be done in other Threads.
Therefore, Chart.EndUpdate() MUST be called in UI thread. At least the one that actually renders it (no other pending BeginUpdates). Otherwise the DirectX rendering itself can't work, and it will crash the chart or even the whole system.
If it is not UI thread problem, we would need full stacktrace and whole app (whenever it is possible) send to Arction's support account.
All the best.
-
- Posts: 14
- Joined: Mon Jul 03, 2017 8:43 am
Re: Size change Exception
Hi, Kesturis
now, I do check up the Ui thread
thanks for your reply.
Best regards,
Lawrence Jung
now, I do check up the Ui thread
thanks for your reply.
Best regards,
Lawrence Jung
-
- Posts: 14
- Joined: Mon Jul 03, 2017 8:43 am
Re: Size change Exception
Hi, Kesturis
I am clear the error
Thanks for your help.
Best regards,
Lawrence Jung
I am clear the error
Thanks for your help.
Best regards,
Lawrence Jung
-
- Posts: 557
- Joined: Mon Mar 14, 2016 9:22 am
Re: Size change Exception
You are welcome!