Note that there are some explanatory texts on larger screens.

plurals
  1. POListBox "An ItemsControl isinconsistent with its items source"
    primarykey
    data
    text
    <p>I have an ListBox which should show some data which will be changed over time.</p> <p>it works well for a random amount of time, till suddenly an exception is thrown which i can't catch.</p> <p>let me explain how my application works:</p> <ol> <li>I track some Data (own Thread)</li> <li>I show these "tracks" in my ListBox (own Thread)</li> <li>I'm tracking more data</li> <li>I show there new "tracks" also in my ListBox.</li> <li>continue with 3.</li> </ol> <p>The exception orrcures in 3. or 4.</p> <p>Sometimes it is thrown when iam getting new data (not changing any view or anything) and sometimes it is thrown when the view is updated.</p> <p>the updating of the ListBox has an own Thread which runs all the time: and just does this:</p> <pre><code>TrackedProcessList.ItemsSource = null; TrackedProcessList.ItemsSource = this.applicationTracker.trackings; </code></pre> <p>The data tracking also runs in an own Thread and generated new data.</p> <p>i've read these stackoverflow-threads but they dont have an solution for me:</p> <pre><code>http://stackoverflow.com/questions/14336750/upgrading-to-net-4-5-an-itemscontrol-is-inconsistent-with-its-items-source http://stackoverflow.com/questions/14470621/an-itemscontrol-is-inconsistent-with-its-items-source-happening-in-nested-list http://stackoverflow.com/questions/15137213/wpf-listview-inside-grid-scrolling-error-an-itemscontrol-is-inconsistent-with http://stackoverflow.com/questions/13692939/how-can-you-share-a-resource-between-listbox-item-instances </code></pre> <p>I also dont know what you maybe need to solve my question, so can you please write me what i need to post</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload