Cannot Access a Disposed Object Error

I am getting this error for one of my builds. It happens whenever i change entity screens sometimes.

The Tables entity screen contains: entity buttons for tables, a ticket lister widget configured to show ticket when clicked, AC button to create waiting ticket, and tiny task editor widget to enable scanning bar code functionality on entity screens.

The Open Tickets entity screen contains: Just a ticket lister widget showing all unpaid tickets.

Any clue on what could be going on?


[General Info]

Application: SambaPOS
Version: 5.2.2
Region: en
DB: SQ
Machine: DESKTOP-EDLLBFM
User: Admin
Date: 7/7/2017
Time: 6:20 PM

User Explanation:

Admin said “”

[Exception Info 1]

Top-level Exception
Type: System.ObjectDisposedException
Message: Cannot access a disposed object.
Source: mscorlib
Stack Trace: at System.Threading.TimerQueueTimer.Change(UInt32 dueTime, UInt32 period)
at System.Threading.Timer.Change(Int32 dueTime, Int32 period)
at Samba.Presentation.ClientLibrary.Modules.TaskModule.Widgets.TaskEditor.TaskEditorViewModel.InternalRefresh() in C:\Users\emree\Documents\Github\SambaPOSPro\Samba.Presentation.ClientLibrary\Modules\TaskModule\Widgets\TaskEditor\TaskEditorViewModel.cs:line 735
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at Samba.Presentation.Common.Widgets.WidgetViewModel.b__86_0()
at Samba.Services.Common.MethodQueues.MethodQueueItem.Execute() in C:\Users\emree\Documents\Github\SambaPOSPro\Samba.Services\Common\MethodQueues\MethodQueueItem.cs:line 35
at Samba.Services.Common.MethodQueues.Methods.<>c.b__5_0(MethodQueueItem x) in C:\Users\emree\Documents\Github\SambaPOSPro\Samba.Services\Common\MethodQueues\Methods.cs:line 56
at System.Collections.Generic.List1.ForEach(Action1 action)
at Samba.Services.Common.MethodQueues.Methods.ExecuteDelayedMethods() in C:\Users\emree\Documents\Github\SambaPOSPro\Samba.Services\Common\MethodQueues\Methods.cs:line 56
at Samba.Presentation.Services.Implementations.MethodQueue.RunQueue()
at Samba.Presentation.Shell.TimerTick(Object sender, EventArgs e)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


[Assembly Info]

mscorlib, Version=4.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v14.1, Version=14.1.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v14.1, Version=14.1.13.0
System, Version=4.0.0.0
DevExpress.Xpf.Grid.v14.1.Core, Version=14.1.13.0
WindowsBase, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v14.1, Version=14.1.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=1.0.0.0
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=1.0.0.0
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0


[System Info]

Operating System
-Microsoft Windows 10 Enterprise 2016 LTSB
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = -240
–FreePhysicalMemory = 11872900
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.14393

Machine
-DESKTOP-EDLLBFM
–Manufacturer = System manufacturer
–Model = System Product Name
–TotalPhysicalMemory = 16845000704
–UserName = DESKTOP-EDLLBFM\Admin


The error mentions a Task Editor Widget, so I would check the settings of the Widget and any Automation you have attached to it.

Is it possible you have a duplicate Task Editor on the screen that you can’t see?

Maybe remove the Task Editor Widget to verify the error disappears.

2 Likes

I have also had this error intermittently when using task editors for kitchen displays. I never can get to the bottom of why it appears as it seems almost random. It happens when I switch to the kitchen display, and randomly - sometimes won’t happen for 50 times then happens. I set up my kitchen displays based on the bump bar tutorial and used the database tools file from there. I’ve has the same issue on a number of setups for different clients.

Just thought I’d mention this as there might be some underlying factor that causes this error in some scenarios.

1 Like