Page 1 of 1

Problem with chart creation

Posted: Thu Jun 19, 2014 7:07 pm
by juergen
Hi,
I used V5 LightningChart inside a docking suite (Actipro). Now I changed to Version 6 of LC.
When I open a new Document in docked state the chart doesn't appear. I had a look in the source but couldn't find a solution.
The device got the state "DeviceAvailable" but nothing is shown. If I open the Document in floating mode everything is ok.

So something has changed in chart creation from V5 to V6.

Any ideas?

Best regards,
Jürgen

Re: Problem with chart creation

Posted: Thu Jun 19, 2014 8:50 pm
by ArctionPasi
A lot has changed, for example the whole DirectX side from SlimDX to SharpDX. We'll try to improve the compatibility with this docking suite during next couple of weeks.

Re: Problem with chart creation

Posted: Fri Jun 20, 2014 7:43 pm
by juergen
If it helps I can make a sample for demonstration and send it to you.

Re: Problem with chart creation

Posted: Sat Jun 21, 2014 8:20 am
by ArctionPasi
That would be helpful, please send it to support(at)arction.com

Re: Problem with chart creation

Posted: Mon Jul 07, 2014 1:26 pm
by juergen
Hi,
Sorry for delay. I prepaired a Test-Project and everything works for this.
I checked the "big" project where it doesn't work. The splash-window makes the problem.
If I start the application with the splash-window the problem with LightningChart appears.
If I start the MainWindow directly it works as it should.

So in principle I have to check my program...

Re: Problem with chart creation

Posted: Mon Jul 07, 2014 1:36 pm
by ArctionPasi
Are you using a background thread to create chart and other UI controls while splash screen is being shown? If so, remember to use Dispatcher.Invoke to make the initialization code to run in UI thread context.

Re: Problem with chart creation

Posted: Mon Jul 07, 2014 6:20 pm
by juergen
The Splash-Window is opened first. The Main-Window is started by the Splash-Window.

Initialization of a chart is done later when some data should be shown.
The strange thing is: It works at my laptop - at 3 other pcs the problem occurs.

Re: Problem with chart creation

Posted: Tue Jul 08, 2014 10:10 am
by juergen
I fixed the problem:
The SplashWindow was the main window in the Application.
After creation of the MainWindow it has to be set as Applications MainWindow also by

App.Current.MainWindow = this;

Then everything works.
It's new in Version 6, in V5 it wasn't necessery... so I was a bit confused.