Crash when using TeeChart Export

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
EdMike
Newbie
Newbie
Posts: 4
Joined: Mon Feb 09, 2015 12:00 am

Crash when using TeeChart Export

Post by EdMike » Mon May 11, 2015 9:40 am

Hi,
I am getting a crash when trying to use the save function from TeeCommander on a plot.

When the TeeChart Export dialog appears
Click on as "XAML (WPF)" and "as Flex (Flash)" and again click on "XAML (WPF)" which crashes the application.

Please see the attached image to see the crash report.

This is using Teechart.Net version 4.1.2014.08120

Any suggestions?

Thanks.
Attachments
ExportCrash.png
crash report
ExportCrash.png (17.5 KiB) Viewed 8987 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Crash when using TeeChart Export

Post by Christopher » Mon May 11, 2015 12:40 pm

EdMike wrote:Any suggestions?
I think that's because the Flex (Flash) editor maybe be trying to write to the registry, for which it will need Administrator privileges under some security configurations. If you run your *.exe "Run as administrator", does it give you the same error?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

EdMike
Newbie
Newbie
Posts: 4
Joined: Mon Feb 09, 2015 12:00 am

Re: Crash when using TeeChart Export

Post by EdMike » Mon May 11, 2015 2:50 pm

Hi Christopher,
Thanks for the prompt reply.
Unfortunately I am running as administrator and it still crashes.

I have found a possible partial solution though following your suggestion.

It crashes if there is no Steema Software/TeeChart.Net key in the registry under HKLM.
If I add that then all appears fine until I actually try to do the save then it crashes, maybe due to having no Adobe Flex compiler?

As a workaround is there any way to dynamically remove this Flex(flash) option from the list of formats?

Thanks,
Mike

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Crash when using TeeChart Export

Post by Christopher » Mon May 11, 2015 3:50 pm

Hi Mike,

I've just created a short video of what I get here with the version you are using:
http://screencast.com/t/0MeyNsVf

As you can see, running with administrator privileges throws an 'access denied' error when accessing the registry, this latter being empty of any Steema key in the HKLM. I do not have the Adobe compiler installed on this machine, and in any case TeeChart code does not interact with it at all until the "Path to Adobe Flex compiler" has been defined. Running the *.exe again this time with administrator privileges, and the code works as expected - the "Environment.SpecialFolder.Personal" folder is defined as the default temporary folder.

Does TeeChart work differently on your machine running a similar test?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

EdMike
Newbie
Newbie
Posts: 4
Joined: Mon Feb 09, 2015 12:00 am

Re: Crash when using TeeChart Export

Post by EdMike » Wed May 13, 2015 8:00 am

Hi Christopher,
I do get something different, my crash is a NullException not an access issue. Please note I don't have the TeeChart development setup installed on this test machine, it is being used as a runtime only for displaying plots within our package.

One thing I did notice was that you didn't expand and check under the Wow6432Node, (your video didn't expand that bit), but that is where the access is denied to?

Also can you try clicking save (without changing any flex settings) when running as administrator to see if that crashes?

Note:
I have also managed to find the following other post with a similar problem...

http://www.teechart.net/support/viewtop ... flex+flash

Thanks for your help,

Mike

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Crash when using TeeChart Export

Post by Christopher » Wed May 13, 2015 9:03 am

Hi Mike,

You're right, I was looking at the wrong registry entry. I've found and fixed the defect. Pressing the Save button, without first having compiled the project (in the absence of the Flex compiler), simply saves to file a text-based *mxml file. This fix will be in the upcoming maintenance release, due out very shortly.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

EdMike
Newbie
Newbie
Posts: 4
Joined: Mon Feb 09, 2015 12:00 am

Re: Crash when using TeeChart Export

Post by EdMike » Wed May 13, 2015 9:19 am

Thank You,

Regards,
Mike

Post Reply