Export to Flash Causes UE

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Kris C
Newbie
Newbie
Posts: 59
Joined: Fri Jan 13, 2023 12:00 am

Export to Flash Causes UE

Post by Kris C » Mon Aug 28, 2023 7:28 pm

Hello,

While testing, we came across an unhandled exception when trying to export to "Flex (Flash") format.

Create a graph with any data
Open Options Dialog
Export Tab
Select "as Flex (Flash)"

Get the following exception:
System.UnauthorizedAccessException: Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Steema Software\TeeChart.NET' is denied.

at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
at Microsoft.Win32.Registry.SetValue(String keyName, String valueName, Object value, RegistryValueKind valueKind)
at Steema.TeeChart.Export.FlexOptions.tbTemp_TextChanged(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
at System.Windows.Forms.Control.set_Text(String value)
at System.Windows.Forms.TextBoxBase.set_Text(String value)
at System.Windows.Forms.TextBox.set_Text(String value)
at Steema.TeeChart.Export.FlexOptions.ReadOptions()
at Steema.TeeChart.Editors.Export.FlexEditor.Options(Chart c)
at Steema.TeeChart.Editors.Export.ExportEditor.listBox1_SelectedIndexChanged(Object sender, EventArgs e)

We are NOT running as administrator and this is on the end-user machine so we cannot "install" TeeChart. it appears some additional defensive logic is needed here.

As with previous bug fixes, providing the diff of the fix should be enough to apply the necessary changes.

Kind Regards,

Kris Culin
Senior Software Developer, Water Infrastructure
Bentley Systems, Inc.

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

Re: Export to Flash Causes UE

Post by Christopher » Wed Aug 30, 2023 10:56 am

Hello Kris,
Kris C wrote:
Mon Aug 28, 2023 7:28 pm
We are NOT running as administrator and this is on the end-user machine so we cannot "install" TeeChart. it appears some additional defensive logic is needed here.
Yes, I agree, although your app running on the client machine could ask for UAC administrator permissions.
Kris C wrote:
Mon Aug 28, 2023 7:28 pm
As with previous bug fixes, providing the diff of the fix should be enough to apply the necessary changes.
I've attached the diff.
diff.zip
(594 Bytes) Downloaded 1358 times
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

Post Reply