This is a migrated thread and some comments may be shown as answers.

OutOfMemory Exception when Setting ItemsSource

2 Answers 26 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 08 Dec 2009, 06:01 PM
Hi,

I'm having issues getting data to display in a GridView, which is odd as I've been successfully using these tools prior to this.  The problem seems to be involved in the use of the collection by the GridView once its ItemsSource property has been set.

When this property is set in xaml, I get the following error:
    "An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown Module."

And when this property is set from code, I get this error:
    "An unhandled exception ("Unhandled Error in Silverlight Application
        Code: 4004
        Category: ManagedRuntimeError
        Message: System.Windows.Markup.XamlParseException: [Line: 0 Position: 0]"

As far as I can tell, both the GridView and data are well formed and seem to function well enough seperately, but, for the life of me, I cannot see why there is an issue connecting them.  I'm experiencing  this issue with Q2 and Q2 SP1 tools and we're in the process of moving to Q3.  Any insight into this problem would be greatly appreciated,  or, if someone could reliably say that moving to Q3 would solve this issue, I would be just as happy to forget about the problem altogether.

Thanks

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Dec 2009, 06:40 AM
Hi,

 Can you post more info how to reproduce this? How the grid is declared / created in your case? You can post also how exactly the grid is bound to this collection.


Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Benjamin
Top achievements
Rank 1
answered on 11 Dec 2009, 03:32 PM
Thanks for the reply - sorry I didn't post this sooner, but it was total user error on my part; I hadn't imported the input library, so... yeah.

Anyway, thanks.
Tags
GridView
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Benjamin
Top achievements
Rank 1
Share this question
or