Out of Memory Error

5 posts, 0 answers
  1. Matt Tonsager
    Matt Tonsager avatar
    10 posts
    Member since:
    May 2010

    Posted 20 May 2010 Link to this post

    Hello,

    I am using a Spline defenition and when I double click the window header to fit the window to the Monitor I get an out of memory error. It looks like it is trying to Redraw the Spline lines. Here is the Stack Trace:

       at MS.Utility.ArrayItemList`1.Add(T value)
       at MS.Utility.FrugalStructList`1.Add(T value)
       at System.Windows.Media.PointCollection.AddWithoutFiringPublicEvents(Point value)
       at System.Windows.Media.PointCollection.Add(Point value)
       at Telerik.Windows.Controls.Charting.SplineHelper.GenerateSplineSegmentPoints(Point pt0, Point pt1, Point pt2, Point pt3, Double tolerance)
       at Telerik.Windows.Controls.Charting.SelfDrawingSeries.CalculateSplinePoints(Func`2 extractXRangeValue, Func`3 extractYRangeValue)
       at Telerik.Windows.Controls.Charting.SplineSeries.CalculatePoints(Func`2 extractXRangeValue, Func`3 extractYRangeValue)
       at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeTopBorderLineGeometry()
       at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeSeriesGeometry()
       at Telerik.Windows.Controls.Charting.SelfDrawingSeries.SeriesSizeChanged(Object sender, SizeChangedEventArgs e)
       at System.Windows.SizeChangedEventArgs.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.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
       at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, 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)
       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, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       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.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 K2Analytics.Application.Main() in C:\Projects\ConsumerInsights\K2Analytics_Soln\K2Analytics\obj\Debug\Application.g.vb:line 69
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
       at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
       at System.Activator.CreateInstance(ActivationContext activationContext)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    Thanks,
    Matt
  2. Matt Tonsager
    Matt Tonsager avatar
    10 posts
    Member since:
    May 2010

    Posted 20 May 2010 Link to this post

    Hello again,

    Another thing I noticed is it only happens with both the XAxis and YAxis Zoom/Scrolling present.

    Also, when I use the Min/Max Window buttons everything works fine.

    The error only appears when I double click the Window Header.

    Thanks,
    Matt
  3. UI for WPF is Visual Studio 2017 Ready
  4. Velin
    Admin
    Velin avatar
    391 posts

    Posted 25 May 2010 Link to this post

    Hello Matt Tonsager,

    Could you please prepare and send us a small project where this issue can be observed ? Thanks.

    Best wishes,
    Velin
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Yugal
    Yugal avatar
    8 posts
    Member since:
    Jul 2013

    Posted 30 Jan 2014 in reply to Velin Link to this post

    I am also getting same exception. Please reply solution ASAP...
  6. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 03 Feb 2014 Link to this post

    Hello Yugal,

    Unfortunately, I couldn't reproduce your issue. Could you provide us with a sample project that demonstrate the described behavior. This will help us to test it locally and try to find the reason behind the issue.

    Please note that due to its known limitations the RadChart control is replaced by the RadChartView. You can read more about the differences between the two components in this article. Also, keep in mind that the performance of the RadChartView control is greatly improved and we recommend using it instead. 

    Regards,
    Martin Ivanov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready