#254
Solved
Deck Editor crashes when removing a filter
Reported by Josh on OCTGN · 03/05/2010 04:36:28
- Assigned to:
- jods
- Priority:
- Normal
- Status:
- Solved
- Category:
- Deck Builder
- Version:
- 0.7.*
- Issue type:
- Bug
The title explains it all. When in deck editor, you can run a search. If you then try to change the search by removing a filter you previously made, you receive a fatal error:
System.InvalidCastException: Unable to cast object of type ‘MS.Internal.NamedObject’ to type ‘Octgn.Data.PropertyDef’.
at Octgn.DeckBuilder.FilterControl.<.ctor>b__0(Object , DependencyPropertyChangedEventArgs )
at System.Windows.FrameworkElement.RaiseDependencyPro
at System.Windows.FrameworkElement.OnDataContextChang
at System.Windows.DependencyObject.OnPropertyChanged(
at System.Windows.FrameworkElement.OnPropertyChanged(
at System.Windows.DependencyObject.NotifyPropertyChan
at System.Windows.DependencyObject.UpdateEffectiveVal
at System.Windows.TreeWalkHelper.OnInheritablePropert
at System.Windows.DescendentsWalker`1.VisitNode(DependencyObject d)
at System.Windows.DescendentsWalker`1.VisitNode(Frame
at System.Windows.DescendentsWalker`1.VisitNode(Depen
at System.Windows.DescendentsWalker`1.WalkFrameworkEl
at System.Windows.DescendentsWalker`1.IterateChildren
at System.Windows.DescendentsWalker`1.StartWalk(Depen
at System.Windows.FrameworkElement.OnPropertyChanged(
at System.Windows.DependencyObject.NotifyPropertyChan
at System.Windows.DependencyObject.UpdateEffectiveVal
at System.Windows.DependencyObject.SetValueCommon(Dep
at System.Windows.DependencyObject.SetValue(Dependenc
at System.Windows.Controls.ContentPresenter.OnContent
at System.Windows.DependencyObject.OnPropertyChanged(
at System.Windows.FrameworkElement.OnPropertyChanged(
at System.Windows.DependencyObject.NotifyPropertyChan
at System.Windows.DependencyObject.UpdateEffectiveVal
at System.Windows.DependencyObject.SetValueCommon(Dep
at System.Windows.DependencyObject.SetValue(Dependenc
at System.Windows.Controls.ContentPresenter.ClearCont
at System.Windows.Controls.ItemsControl.ClearContaine
at System.Windows.Controls.ItemsControl.MS.Internal.C
at System.Windows.Controls.ItemContainerGenerator.Unl
at System.Windows.Controls.ItemContainerGenerator.OnI
at System.Windows.Controls.ItemContainerGenerator.OnC
at System.Windows.Controls.ItemContainerGenerator.Sys
at System.Windows.WeakEventManager.DeliverEventToList
at System.Windows.WeakEventManager.DeliverEvent(Objec
at System.Collections.Specialized.CollectionChangedEv
at System.Collections.Specialized.NotifyCollectionCha
at System.Windows.Data.CollectionView.OnCollectionCha
at System.Windows.Controls.ItemCollection.System.Wind
at System.Windows.WeakEventManager.DeliverEventToList
at System.Windows.WeakEventManager.DeliverEvent(Objec
at System.Collections.Specialized.CollectionChangedEv
at System.Windows.Data.CollectionView.OnCollectionCha
at MS.Internal.Controls.InnerItemCollectionView.RemoveAt(Int32 index, Int32 indexR, Object item)
at MS.Internal.Controls.InnerItemCollectionView.Remov
at System.Windows.Controls.ItemCollection.RemoveAt(In
at Octgn.DeckBuilder.SearchControl.RemoveFilter(Objec
at Octgn.DeckBuilder.FilterControl.RemoveClicked(Obje
at System.Windows.RoutedEventHandlerInfo.InvokeHandle
at System.Windows.EventRoute.InvokeHandlersImpl(Objec
at System.Windows.UIElement.RaiseEventImpl(Dependency
at System.Windows.UIElement.RaiseEvent(RoutedEventArg
at System.Windows.Controls.Primitives.ButtonBase.OnCl
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMo
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(
at System.Windows.Input.MouseButtonEventArgs.InvokeEv
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg
at System.Windows.RoutedEventHandlerInfo.InvokeHandle
at System.Windows.EventRoute.InvokeHandlersImpl(Objec
at System.Windows.UIElement.ReRaiseEventAs(Dependency
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEv
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg
at System.Windows.RoutedEventHandlerInfo.InvokeHandle
at System.Windows.EventRoute.InvokeHandlersImpl(Objec
at System.Windows.UIElement.RaiseEventImpl(Dependency
at System.Windows.UIElement.RaiseTrustedEvent(RoutedE
at System.Windows.UIElement.RaiseEvent(RoutedEventArg
at System.Windows.Input.InputManager.ProcessStagingAr
at System.Windows.Input.InputManager.ProcessInput(Inp
at System.Windows.Input.InputProviderSite.ReportInput
at System.Windows.Interop.HwndMouseInputProvider.Repo
at System.Windows.Interop.HwndMouseInputProvider.Filt
at System.Windows.Interop.HwndSource.InputFilterMessa
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(
at System.Windows.Threading.ExceptionWrapper.Internal
at MS.Internal.Threading.ExceptionFilterHelper.TryCat
at System.Windows.Threading.Dispatcher.InvokeImpl(Dis
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(
at System.Windows.Threading.Dispatcher.PushFrame(Disp
at System.Windows.Threading.Dispatcher.Run()
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 Octgn.OctgnApp.Main()
Attachments
No attachment has been uploaded, yet.
Loading comments...