UWP Release mode

Did anything change with regards to initialization of controls on UWP from v18 to v19? I have an app that works fine with v18, but when I update to v19, in RELEASE mode it crashes at startup with the message "Value does not fall within the expected range.". I reviewed the on-line documentation for the controls that I am using and have the appropriate initialization code required for UWP release mode.

I use these controls Buttons, SfBusyIndicator, SfChart, SfComboBox, SfListView, SfNumericTextBox, SfNumericUpDown, SfPopupLayout, and SfTreeView

The code looks like this:
            this.InitializeComponent();
            Syncfusion.XForms.UWP.TreeView.SfTreeViewRenderer.Init();
            Syncfusion.ListView.XForms.UWP.SfListViewRenderer.Init();
            Syncfusion.XForms.UWP.PopupLayout.SfPopupLayoutRenderer.Init();
            LoadApplication(new Flipcards.App(new UwpInitializer()));

and this:
                List assemblies_to_include = new List();
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Buttons.SfButtonRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Border.SfBorderRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.SfBusyIndicator.XForms.UWP.SfBusyIndicatorRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.SfChart.XForms.UWP.SfChartRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.ComboBox.SfComboBoxRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.ListView.XForms.UWP.SfListViewRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.SfNumericTextBox.XForms.UWP.SfNumericTextBoxRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.SfNumericUpDown.XForms.UWP.SfNumericUpDownRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.PopupLayout.SfPopupLayoutRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.TreeView.SfTreeViewRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Buttons.SfCheckBoxRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.Buttons.SfRadioButtonRenderer).GetTypeInfo().Assembly);
                assemblies_to_include.Add(typeof(Syncfusion.XForms.UWP.TextInputLayout.SfTextInputLayoutRenderer).GetTypeInfo().Assembly);
                Xamarin.Forms.Forms.Init(e, assemblies_to_include);

Any suggestions?

Regards,
Arthur

2 Replies

ST Stefano May 6, 2021 08:36 AM UTC

Hello,

i also have the exact same problem after the upgrade i had to downgrade Synfusion back to v18 in order to release the upgrade to my customers.

We look forward to your feedback
Thank you


LN Lakshmi Natarajan Syncfusion Team May 6, 2021 01:34 PM UTC

Hi Arthur and Stefano, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “Crash in UWP Release mode” from our side. We would like to inform you that we are unable to reproduce the reported issue at our side. We have prepared a sample using the mentioned controls and attached the tested sample in the following link, 
 
 
Please check our sample and let us know if you still facing the same issue? If not, please modify our sample to reproduce the issue which would be helpful for us to check on it and provide you the solution as soon as possible. 
 
Regards, 
Lakshmi Natarajan 


Loader.
Up arrow icon