Home Forums General System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException'

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • karan@shaural.com
    Participant
    Post count: 2
    #44517 |

    Hello,

    I have WPF Application in which we are using Xceed controls. We have created user control for Xceed. When I open same window multiple times then after sometime “System Out of Memory” exception is thrown from
    the InitializeComponent() method of Xceed.

    I am facing this error since long time, can you please guide me for the solution of this problem.
    We are using Xceed Version 6.0

    Below is the stack trace details:
    at System.RuntimeType.ListBuilder`1.Add(T item)
    at System.RuntimeType.GetFieldCandidates(String name, BindingFlags bindingAttr, Boolean allowPrefixLookup)
    at System.RuntimeType.GetFields(BindingFlags bindingAttr)
    at Xceed.Wpf.DataGrid.Views.ViewBase.<GetViewPropertiesCore>d__0.MoveNext()
    at System.Linq.Buffer1..ctor(IEnumerable1 source)
    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    at Xceed.Wpf.DataGrid.Views.ViewBase.GetSharedNoFallbackProperties()
    at Xceed.Wpf.DataGrid.DataGridContext.SetupViewProperties()
    at Xceed.Wpf.DataGrid.DataGridContext.OnReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
    at Xceed.Wpf.DataGrid.DataGridContext.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
    at System.Windows.WeakEventManager.ListenerList.DeliverEvent(Listener& listener, Object sender, EventArgs args, Type managerType)
    at System.Windows.WeakEventManager.ListenerList.DeliverEvent(Object sender, EventArgs args, Type managerType)
    at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
    at Xceed.Wpf.DataGrid.ViewChangedEventManager.OnViewChanged(Object sender, EventArgs args)
    at Xceed.Wpf.DataGrid.DataGridControl.OnViewChanged(ViewBase oldView, ViewBase newView)
    at Xceed.Wpf.DataGrid.DataGridControl.OnViewChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
    at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
    at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
    at Xceed.Wpf.DataGrid.DataGridControl.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 System.Windows.Baml2006.WpfMemberInvoker.SetValue(Object instance, Object value)
    at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
    at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
    at System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent)
    at System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx)
    at System.Xaml.XamlObjectWriter.Logic_CheckAssignmentToParentStart(ObjectWriterContext ctx)
    at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx)
    at System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
    at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
    at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
    at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
    at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
    at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
    at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
    at HotsoftControls.XceedHotSoft.InitializeComponent() in c:\ Project \XceedHotSoft\XceedHotSoft.xaml:line 1
    at HotsoftControls.XceedHotSoft..ctor() in c:\Project \XceedHotSoft\XceedHotSoft.xaml.cs:line 442

    Regards,
    Karan

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Could you send me more details regarding how to reproduce the issue(e.g. simple stand alone sample project) so that we could have a closer look.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.