-
-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carousel - 'Timer' Causing ObjectDisposedException #3157
Comments
Can you tell us what version of Blazorise are you using? |
0.9.5 |
Tnx. We'll try to investigate. |
Hoping that the new "Timer" on NET6 will be much better and we can rework this. For now I think I am going to do the same that has been done with the Transition Timer... Otherwise I don't see any other options? Maybe acquire a lock to the |
what gives?! This feels like a major bug in .NET... |
We are using the carousel as a component and getting the following:
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at Blazorise.Carousel.ResetTimer() at Blazorise.Carousel.AnimationEnd(CarouselSlide slide) at Blazorise.Carousel.<>c__DisplayClass35_0.<<OnTransitionTimerEvent>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.<>c.<<InvokeAsync>b__9_0>d.MoveNext() --- End of stack trace from previous location --- at Blazorise.Carousel.OnTransitionTimerEvent(Object source, ElapsedEventArgs e) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__127_1(Object state) at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi) at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action1 callback, TState& state) at System.Threading.QueueUserWorkItemCallback.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback()
The current way we're reproducing this error is to just click around each page until it occurs again, we haven't been able to find 100% way to replicate.
The text was updated successfully, but these errors were encountered: