Whenever I set the value of a LinearGaugeBarMarker object in a XamLinearGauge control, an ArgumentException is thrown from deep in the WPF stack. The exception info is copied below.
I'm using build 11.1.20111.2113 of the WPF data viz controls on win7 ultimate with themes enabled. Sample project that reproduces the behavior is attached.
I've tried this using databinding and manual value assignment. Doesn't seem to matter.
Exception info:
System.ArgumentException was unhandled Message=Value does not fall within the expected range. Source=mscorlib StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at MS.Internal.Automation.UiaCoreProviderApi.CheckError(Int32 hr) at System.Windows.Automation.Provider.AutomationInteropProvider.RaiseAutomationPropertyChangedEvent(IRawElementProviderSimple element, AutomationPropertyChangedEventArgs e) at System.Windows.Automation.Peers.AutomationPeer.RaisePropertyChangedEvent(AutomationProperty property, Object oldValue, Object newValue) at Infragistics.Controls.Charts.AutomationPeers.LinearGaugeBarMarkerAutomationPeer.RaiseValueChangedEvent(Double newValue) at Infragistics.Controls.Charts.AutomationPeers.LinearGaugeBarMarkerAutomationPeer.Measure_ValueChanged(Object sender, ValueChangedEventArgs e) at Infragistics.Controls.Charts.GaugeBarMarkerBase.OnValueChanged() at Infragistics.Controls.Charts.GaugeBarMarkerBase.OnValueChanged(Double oldValue, Double newValue) at Infragistics.Controls.Charts.GaugeBarMarkerBase.OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.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.SetValue(DependencyProperty dp, Object value) at Infragistics.Controls.Charts.GaugeBarMarkerBase.set_Value(Double value) at WpfApplication1.MainWindow.SetBarValue() in C:\Users\beefarino\Documents\Project\SeeShell\CodeOwls.SeeShell\WpfApplication1\MainWindow.xaml.cs:line 52 at WpfApplication1.MainWindow.timer_Elapsed(Object sender, EventArgs eventArgs) in C:\Users\beefarino\Documents\Project\SeeShell\CodeOwls.SeeShell\WpfApplication1\MainWindow.xaml.cs:line 46 at System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 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.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, 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.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(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 WpfApplication1.App.Main() in C:\Users\beefarino\Documents\Project\SeeShell\CodeOwls.SeeShell\WpfApplication1\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() InnerException:
Hello,
I am just checking the progress of this issue. Did you manage to handle this?
Hi Stefan;
I've been trying to reproduce this issue on other machines, but no luck. The only place this happens is on my primary dev box, which is win7 ultimate 64bit with vs 2010. I've tried the same code on 32 and 64-bit windows server 2008 r2, and 32-bit xp, but the exception only occurs on my primary dev box.
I'm basically ignoring the issue at the point, and will readdress it if it resurfaces elsewhere.
For posterity, I've copied the info from my VS about box since you asked about my IDE:
Microsoft Visual Studio 2010Version 10.0.30319.1 RTMRelMicrosoft .NET FrameworkVersion 4.0.30319 RTMRelInstalled Version: PremiumMicrosoft Office Developer Tools 01021-532-2002102-70992Microsoft Office Developer ToolsMicrosoft Visual C# 2010 01021-532-2002102-70992Microsoft Visual C# 2010Microsoft Visual C++ 2010 01021-532-2002102-70992Microsoft Visual C++ 2010Microsoft Visual F# 2010 01021-532-2002102-70992Microsoft Visual F# 2010Microsoft Visual Studio 2010 Code Analysis Spell Checker 01021-532-2002102-70992Microsoft Visual Studio 2010 Code Analysis Spell CheckerPortions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.Microsoft Visual Studio 2010 Team Explorer 01021-532-2002102-70992Microsoft Visual Studio 2010 Team ExplorerMicrosoft Visual Web Developer 2010 01021-532-2002102-70992Microsoft Visual Web Developer 2010Crystal Reports Templates for Microsoft Visual Studio 2010 Crystal Reports Templates for Microsoft Visual Studio 2010Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB2455033) KB2455033This hotfix is for Microsoft Visual Studio 2010 Premium - ENU.If you later install a more recent service pack, this hotfix will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/2455033.JetBrains dotTrace Performance 4.0.1 Professional Edition build 4.0.665.4 on 2010-11-16T18:17:50JetBrains dotTrace Performance 4.0.1 package for Microsoft Visual Studio. For more information about dotTrace, visit http://www.jetbrains.com/profiler/. Copyright © 2005–2011 JetBrains, Inc.JetBrains ReSharper 6.0 Full Edition build 6.0.2202.688 on 2011-06-30T01:14:16JetBrains ReSharper 6.0 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2011 JetBrains, Inc.MySQL Connector/Net 6.3.7Data design and management tools for MySQL. Copyright © 2007-2009 MySQL ABNuGet Package Manager 1.4.20701.9038NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.PostSharp 2.0PostSharp 2.0 Extension for Visual Studio.Security Update for Microsoft Visual Studio 2010 Premium - ENU (KB2251489) KB2251489This security update is for Microsoft Visual Studio 2010 Premium - ENU.If you later install a more recent service pack, this security update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/2251489.TechTalk SpecFlow 1.6.1TechTalk SpecFlow - Pragmatic BDD for .NET, http://www.specflow.orgCopyright © 2009–2010 TechTalkUpdate for Microsoft Visual Studio 2010 Premium - ENU (KB2483190) KB2483190This update is for Microsoft Visual Studio 2010 Premium - ENU.If you later install a more recent service pack, this update will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/2483190.NDepend v3.8.0 ProfessionalNDepend.Addinhttp://www.NDepend.comCopyright (c) 2004-2010 SMACCHIA.COM SARLStudioShellFor more information, please see studioshell.codeplex.com