Error with SfBusyIndicator version 16.1.0.24

Hi,

Last I updated to SfBusyIndicator version 16.1.0.24. After that my app crashes now each time in the void ShowBusyIndicator where the BusyIndicator in called. The error message is:

Unhandled Exception:

System.InvalidProgramException: Invalid IL code in HypoScan.MainActivity/<ShowBusyIndicator>d__11:MoveNext (): IL_005d: callvirt 0x0a000e16

The void ShowBusyIndicator looks like this and has always worked before:

async void ShowBusyIndicator(bool IncludeNewCalculation)

        {

            var busyIndicator = new SfBusyIndicator(viewpager.Context);

            busyIndicator.IsBusy = true;

            busyIndicator.ViewBoxHeight = 100;

            busyIndicator.ViewBoxWidth = 100;

            busyIndicator.AnimationType = AnimationTypes.GearBox;

            busyIndicator.Title = "Processing...";

            busyIndicator.TextSize = 20;

            busyIndicator.TextColor = General.GetAndroidGraphicsColor(viewpager.GetChildAt(4).Context, Resource.Color.DarkerGray);

            busyIndicator.SetBackgroundColor(General.GetAndroidGraphicsColor(viewpager.GetChildAt(4).Context, Resource.Color.LighterGray));

            var layout = viewpager.GetChildAt(4).FindViewById<LinearLayout>(Resource.Id.LinearLayout5);

            layout.RemoveAllViews();

            layout.AddView(busyIndicator);

            await Task.Delay(1000);

            if (IncludeNewCalculation == true)

            {

               General.FinancialPlanningCalculation(viewpager.GetChildAt(4));

            }

           TabFragment5.SetLayout(viewpager.GetChildAt(4));

            busyIndicator.IsBusy = false;

            busyIndicator.Visibility = Android.Views.ViewStates.Invisible;

       }


What is going wrong?


3 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team February 23, 2018 08:59 AM UTC

Hi Vince,
 
Thanks for contacting syncfusion support.
 
We are unable to reproduce the reported issue " app crashes each time when Showing the BusyIndicator " from our side. With the provided code snippet we have prepared a sample to show the BusyIndicator in Xamarin android. Please find the sample from the below link.
 
Please check the attached sample and if the issue is reproduced again from your side then modify the given sample and please revert us, So that we can give appropriate solution on this.
 
Regards,
Eswaran AT



VI Vince March 5, 2018 02:48 PM UTC

Hi Eswaran,

Sorry for my late reply but after updating all kind off references (Xamarin and Syncfusion) th app crashed. Now it works again after re-installing Visual Studio and all references on my computer which took a lot of time.

The problem with SfBusyIndicator are solved now so re-intalling was the answer.


RB Rabhia Beham Kathar Mideenar Syncfusion Team March 6, 2018 04:30 AM UTC

Hi Vince,

Thanks for your Update.

We are glad that you have achieved your requirement. Please let us know if you need any further assistance on this.

Regards,
Rabhia Beham K.


Loader.
Up arrow icon