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

Attempted to read or write protected memory

2 Answers 59 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 02 Feb 2010, 03:04 PM
Hi..
When I set my ItemSource for the TreeViewItem more than once I get this error.   I ran differant querys and set the ItemSource. Any idea what I'm doing wrong. I'm using RIA Services.  The first time it works fine.. the 2nd it errors out..
 Thanks again!!


// Pass In _Topic...


  var query = from em in this.DS.GetEmailsQuery() where em.TOPIC == _Topic
       orderby em.EMAILDATE descending
              select em;

    LoadOperation<Email> lo =  this.DS.Load(query); 
    lo.Completed += new EventHandler(lo_Get_Data_Completed_INBOX);

 

 

 

    void lo_Get_Data_Completed_INBOX(object sender, EventArgs e) 
    {      

       LoadOperation owlop = sender as LoadOperation;  
               if (owlop.HasError)   
                {
                    // do something

                } 
 

                treeviewItem.ItemsSource = this.DS.Emails;     << ERROR HERE >>>

     }
     



             

2 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 03 Feb 2010, 08:03 AM
Hi Jon The Nerd,

We are not aware of such issue with RadTreeView. Can you try with the MS TreeView and let us know the result.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Jon
Top achievements
Rank 1
answered on 03 Feb 2010, 11:54 AM
HI..
I appears to only happen on IE on my computer.  Other computers don't have the error.
???  
thanks... I don't think it's the treeview - but maybe IE?
Tags
TreeView
Asked by
Jon
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Jon
Top achievements
Rank 1
Share this question
or