Page 1 of 1

Export to Flash Causes UE

Posted: Mon Aug 28, 2023 7:28 pm
by 16095093
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.

Re: Export to Flash Causes UE

Posted: Wed Aug 30, 2023 10:56 am
by Christopher
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 512 times