This is a migrated thread and some comments may be shown as answers.

Exception in RadCalendar: WeakReferenceList`1 - IndexOf

1 Answer 43 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Gert
Top achievements
Rank 1
Gert asked on 21 Jan 2020, 07:21 AM

Hi all!

I have an event which triggers an async loading task in which I change data which is bound to the RadCalendar.

In my development environment I never had any issues but users on RDS-Server have. This is the stack-trace from there log: 

 

ERROR2020-01-20 11:25:28 – Fatal Error - StackTrace: ModuleContainerManager - HandleUnhandledException

WeakReferenceList`1 - IndexOf

WeakReferenceList`1 - Remove

SelectionChanger`1 - Select

SelectionChanger`1 - InsertItem

Collection`1 - Add

SelectionChanger`1 - AddJustThis

RadCalendar - AddToSelection

RadCalendar - OnSelectedDateChanged

RadCalendar - OnSelectedDateChanged

DependencyObject - OnPropertyChanged

FrameworkElement - OnPropertyChanged

DependencyObject - NotifyPropertyChange

DependencyObject - UpdateEffectiveValue

DependencyObject - InvalidateProperty

BindingExpressionBase - Invalidate

BindingExpression - TransferValue

BindingExpression - ScheduleTransfer

ClrBindingWorker - NewValueAvailable

PropertyPathWorker - UpdateSourceValueState

PropertyPathWorker - OnDependencyPropertyChanged

ClrBindingWorker - OnSourceInvalidation

BindingExpression - HandlePropertyInvalidation

BindingExpressionBase - OnPropertyInvalidation

BindingExpression - OnPropertyInvalidation

DependentList - InvalidateDependents

DependencyObject - NotifyPropertyChange

DependencyObject - UpdateEffectiveValue

DependencyObject - SetValueCommon

DependencyObject - SetCurrentValue

RadDateTimePicker - OnSelectedValueChanged

RadDateTimePicker - OnSelectedValueChanged

DependencyObject - OnPropertyChanged

FrameworkElement - OnPropertyChanged

DependencyObject - NotifyPropertyChange

DependencyObject - UpdateEffectiveValue

DependencyObject - InvalidateProperty

BindingExpressionBase - Invalidate

BindingExpression - TransferValue

BindingExpression - ScheduleTransfer

ClrBindingWorker - NewValueAvailable

PropertyPathWorker - UpdateSourceValueState

PropertyPathWorker - RefreshValue

ClrBindingWorker - ScheduleTransferOperation

DataBindOperation - Invoke

DataBindEngine - ProcessCrossThreadRequests

ExceptionWrapper - InternalRealCall

ExceptionWrapper - TryCatchWhen

DispatcherOperation - InvokeImpl

DispatcherOperation - InvokeInSecurityContext

CulturePreservingExecutionContext - CallbackWrapper

ExecutionContext - RunInternal

ExecutionContext - Run

ExecutionContext - Run

CulturePreservingExecutionContext - Run

DispatcherOperation - Invoke

Dispatcher - ProcessQueue

Dispatcher - WndProcHook

HwndWrapper - WndProc

HwndSubclass - DispatcherCallbackOperation

ExceptionWrapper - InternalRealCall

ExceptionWrapper - TryCatchWhen

Dispatcher - LegacyInvokeImpl

HwndSubclass - SubclassWndProc

nsafeNativeMethods - DispatchMessage

Dispatcher - PushFrameImpl

Dispatcher - PushFrame

Application - RunDispatcher

Application - RunInternal

Application - Run

Application - Run

App - Main

 

Do I have to take care some how of the binding or how can I catch this to prevent app crash?

Thanks for help!!!!!!

BR Gert

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 Jan 2020, 03:01 PM

Hello Gert,

We are not aware of the reported behavior. Can you share some a additional information on the case? More specifically, code snippets (runnable if possible) showing how the RadCalendar is setup and how its selection is updated.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Calendar
Asked by
Gert
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or