Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
Unhandled Exception
posted

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
            mscorlib
Target
            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
                WindowsBase
Target
                SetValueCommon

------------------------------------------------------------------------------

Parents
No Data
Reply
  • 90
    posted

    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:

    1. An unhandled exception occurred:  Exception has been thrown by the target of an invocation.
    2. An unhandled exception occurred:  Item has already been added.  Key in dictionary: 'Infragistics.Windows.Automation.Peers.DataPresenter.CellAutomation Peer' Key being added: 'Infragistics.Windows.Automation.Peers.DataPresenter.CellAutomation.Peer'

    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

Children