Problem with chart creation

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Problem with chart creation

Post by juergen » Thu Jun 19, 2014 7:07 pm

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

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Problem with chart creation

Post by ArctionPasi » Thu Jun 19, 2014 8:50 pm

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.
LightningChart Support Team, PT

juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Re: Problem with chart creation

Post by juergen » Fri Jun 20, 2014 7:43 pm

If it helps I can make a sample for demonstration and send it to you.

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Problem with chart creation

Post by ArctionPasi » Sat Jun 21, 2014 8:20 am

That would be helpful, please send it to support(at)arction.com
LightningChart Support Team, PT

juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Re: Problem with chart creation

Post by juergen » Mon Jul 07, 2014 1:26 pm

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...

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Problem with chart creation

Post by ArctionPasi » Mon Jul 07, 2014 1:36 pm

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.
LightningChart Support Team, PT

juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Re: Problem with chart creation

Post by juergen » Mon Jul 07, 2014 6:20 pm

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.

juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Re: Problem with chart creation

Post by juergen » Tue Jul 08, 2014 10:10 am

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.

Post Reply