I'm getting an unhandled exception from the xamDataChart, it's pretty random but it seems to happen most often when I switch the data series that the chart is to display. Basically when the operator requests to see a different set of values, I clear the chart series and recreate a new set of series to display. This is the info I am getting from the exception. Looking at the inner exception it looks like the chart is trying to set the height of something to infinity?
---------------------------------------Exception Details Message Exception has been thrown by the target of an invocation. Types System.Reflection.TargetInvocationException Call Stack at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) 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) Target mscorlibTarget InvokeMethod------------------------------------------------------------------------------ Message 'Infinity' is not a valid value for property 'Height'. Types System.ArgumentException Call Stack at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at Infragistics.Controls.Charts.ColumnSeries.RenderFrame(CategoryFrame frame, CategorySeriesView view) at Infragistics.Controls.Charts.CategorySeries.RenderSeriesOverride(Boolean animate) at Infragistics.Controls.Charts.Series.DoRenderSeries(Boolean animate) at Infragistics.Controls.Charts.ContentInfo.DoRefresh() at Infragistics.Controls.Charts.ChartContentManager.DoRefresh() Target WindowsBaseTarget SetValueCommon------------------------------------------------------------------------------
Hello,
I am investigating an issue with the exact same error message, which was just brought to my attention a few days ago. In my case, it is not in connection with XamDataChart, but I am using Infragistics NetAdvantage for WPF (10.3). I am using XamDataGrid. The problem just suddenly appeared when my client began testing on a Windows 7 64 bit tablet computer. (For clarification, my application is running as a 32 bit app. I am using .Net 3.5.) Are any of those factors similar to your situation? Having searched the web a bit, I have seen some commentary implying that there are perhaps "known" issues with xamDataGrid on tablets (perhaps only in connection with slightly older versions such as mine), but I haven't been able to find any definitive authoritative info on the subject.
Unfortunately, I have limited diagnostic information to offer so far, since the problem has only been seen on a platform I cannot replicate (i.e. a tablet). I have tested the software on 64 bit Windows 7. All I know is that the following messages are occurring sporadically:
I am aware from the marketing materials that Infragistics is touting their latest versions for the tablet (and Windows 8), so I somewhat hope that the problems might just 'go away' if I upgrade. In the absence of any clear information on the subject, however, I'm hesitant to suggest to my customer the cost of a project to upgrade.
I would be interested to learn on what version and on what environment you are seeing the message you reported.
Cheers,
Stan
Interesting, similar but not quite the same. We are using the 2012 volume 1 version, and we do support a touch screen in some installations (we have a kiosk type device, but we also support a desktop experience). However the issue I see is happens sporadically with the exception implying that the height of some control is getting set to infinity. My guess is that there is some divide by zero error that is setting the property to NAN. But I have no way of confirming or providing an example.
My environment is .Net 4 32bit
FYI We do make limited use of the data grid, and I have not seen any trouble yet...