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
Problem with chart creation
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Problem with chart creation
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
Re: Problem with chart creation
If it helps I can make a sample for demonstration and send it to you.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Problem with chart creation
That would be helpful, please send it to support(at)arction.com
LightningChart Support Team, PT
Re: Problem with chart creation
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...
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...
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Problem with chart creation
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
Re: Problem with chart creation
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.
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
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.
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.