Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

unhandled exception when trying to chang the background coloer using linear and diagonal properites

$
0
0

SharpDevelop Version : 4.3.1.9430-406354be
.NET Version         : 4.0.30319.1
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : Invariant Language (Invariant Country) ()
Current UI language  : en
Working Set Memory   : 208300kb
GC Heap Memory       : 62562kb

Unhandled WPF exception
Exception thrown:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
   at MS.Utility.FrugalObjectList`1.get_Item(Int32 index)
   at System.Windows.Freezable.GetChangeHandlersAndInvalidateSubProperties(EventStorage& calledHandlers)
   at System.Windows.Freezable.FireChanged()
   at System.Windows.Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.BrushEditor.GradientSlider.MoveStop(GradientStop stop, Double oldOffset, DragDeltaEventArgs e)
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.BrushEditor.GradientSlider.thumb_DragDelta(Object sender, DragDeltaEventArgs e)
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.BrushEditor.GradientSlider.ClassDragDelta(Object sender, DragDeltaEventArgs e)
   at System.Windows.Controls.Primitives.DragDeltaEventArgs.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.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Primitives.Thumb.OnMouseMove(MouseEventArgs e)
   at System.Windows.UIElement.OnMouseMoveThunk(Object sender, MouseEventArgs e)
   at System.Windows.Input.MouseEventArgs.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)

---- Recent log messages:
22:25:16.421 [7] DEBUG - Removing part C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml from compound class wpf_Demo.MainWindow
22:25:16.421 [7] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
22:25:16.421 [7] DEBUG - Adding existing class MainWindow from MainWindow.xaml
22:25:16.421 [7] DEBUG - Creating compound for wpf_Demo.MainWindow
22:25:16.422 [1] DEBUG - ParseInformationUpdated C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml new!=null:True
22:25:17.959 [12] DEBUG - Removing part C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml from compound class wpf_Demo.MainWindow
22:25:17.959 [12] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
22:25:17.959 [12] DEBUG - Adding existing class MainWindow from MainWindow.xaml
22:25:17.959 [12] DEBUG - Creating compound for wpf_Demo.MainWindow
22:25:17.960 [1] DEBUG - ParseInformationUpdated C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml new!=null:True
22:25:19.499 [7] DEBUG - Removing part C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml from compound class wpf_Demo.MainWindow
22:25:19.499 [7] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
22:25:19.499 [7] DEBUG - Adding existing class MainWindow from MainWindow.xaml
22:25:19.499 [7] DEBUG - Creating compound for wpf_Demo.MainWindow
22:25:19.511 [1] DEBUG - ParseInformationUpdated C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml new!=null:True
22:25:21.007 [7] DEBUG - Removing part C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml from compound class wpf_Demo.MainWindow
22:25:21.007 [7] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
22:25:21.007 [7] DEBUG - Adding existing class MainWindow from MainWindow.xaml
22:25:21.007 [7] DEBUG - Creating compound for wpf_Demo.MainWindow
22:25:21.007 [1] DEBUG - ParseInformationUpdated C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml new!=null:True
22:25:22.521 [12] DEBUG - Removing part C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml from compound class wpf_Demo.MainWindow
22:25:22.521 [12] DEBUG - Second-to-last part removed (old part count = 2), overwriting compound with last part
22:25:22.521 [12] DEBUG - Adding existing class MainWindow from MainWindow.xaml
22:25:22.521 [12] DEBUG - Creating compound for wpf_Demo.MainWindow
22:25:22.521 [1] DEBUG - ParseInformationUpdated C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo\MainWindow.xaml new!=null:True

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.PropertyPad
ProjectService.OpenSolution: [Solution: FileName=C:\Users\User\Documents\Visual Studio 2010\Projects\wpf_Demo\wpf_Demo.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: wpf_Demo]

 


Viewing all articles
Browse latest Browse all 1764

Trending Articles