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

Crash in ReadOnlyBehavior

2 Answers 90 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Sébastien
Top achievements
Rank 1
Sébastien asked on 10 Aug 2011, 04:01 PM
Hi !
We use the ScheduleView Q2 2011 in a scenario where all appointments are recurrent, with the same configurable recurrence length. We have a crash that we can reproduce repeatedly when double-clicking in the schedule to add a couple of appointments, then changing the recurrence length. It won't necessarily do it the first time, but playing around with the control eventually yields the crash.
The exception is:

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.ScheduleView
  StackTrace:
       at Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior.<>c__DisplayClass1.<CanEditSlot>b__0(Slot s) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Helpers\ReadOnlyBehavior.cs:line 109
       at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
       at Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior.CanEditSlot(Slot slot) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Helpers\ReadOnlyBehavior.cs:line 109
       at Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.CanEditSlot(SlotSelectionState state, Slot slot) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Selection\SlotSelectionBehavior.cs:line 76
       at Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.GetSelectionOverride(SlotSelectionState state, Slot currentSlot) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Selection\SlotSelectionBehavior.cs:line 70
       at Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.GetSelection(SlotSelectionState state, Slot currentSlot) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Selection\SlotSelectionBehavior.cs:line 60
       at Telerik.Windows.Controls.ScheduleViewBase.SelectArea(Point clickedPoint) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.Selection.cs:line 263
       at Telerik.Windows.Controls.ScheduleViewBase.ScheduleViewMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in c:\TB\101\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.Common.cs:line 3041
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at TelerikCrash.App.Main() in C:\Users\sfilion\Desktop\TelerikCrash\TelerikCrash\TelerikCrash\obj\x86\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

I have a text project that I can transmit to you if you create a bug in the issue tracker.
Thanks !

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 15 Aug 2011, 11:46 AM
Hi Sébastien,

I wasn't able to reproduce the problem, so I guess we will need your sample project. Could you open a new support ticket and send it to us?

Thanks in advance.

Best wishes,
Valeri Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Sébastien
Top achievements
Rank 1
answered on 16 Aug 2011, 01:54 PM
Thanks Valeri !

I submitted the ticket here:
http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=454389
Tags
ScheduleView
Asked by
Sébastien
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Sébastien
Top achievements
Rank 1
Share this question
or