Fix cross-thread issue copying extractors #11
Labels
No labels
bug
duplicate
enhancement
invalid
Priority 1 - High
Priority 2 - Normal
Priority 3 - Low
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lewismoten/CheerfulDrill#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Given at least one extractor exists
When starting to exctract
Then exception is thrown.
System.InvalidOperationException was unhandled by user code
HResult=-2146233079
Message=Cross-thread operation not valid: Control 'listView1' accessed from a thread other than the thread it was created on.
Source=System.Windows.Forms
StackTrace:
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.ListView.ListViewNativeItemCollection.DisplayIndexToID(Int32 displayIndex)
at System.Windows.Forms.ListView.ListViewNativeItemCollection.get_Item(Int32 displayIndex)
at System.Windows.Forms.ListView.ListViewNativeItemCollection.CopyTo(Array dest, Int32 index)
at System.Windows.Forms.ListView.ListViewNativeItemCollection.GetEnumerator()
at System.Windows.Forms.ListView.ListViewItemCollection.GetEnumerator()
at System.Linq.Enumerable.d__b1
1.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()at System.Linq.Enumerable.d__b1
1.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()at System.Linq.Enumerable.d__b1
1.MoveNext() at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at System.Collections.Generic.List1.AddRange(IEnumerable1 collection) at LewisMoten.Spiders.CheerfulDrill.UI.Form1.Shake(IProgress1 progress, IEnumerable`1 extractors) in c:\Users\Lewis Moten\Documents\GitHub\CheerfulDrill\LewisMoten.Spiders.CheerfulDrill.UI\Form1.cs:line 88at LewisMoten.Spiders.CheerfulDrill.UI.Form1.<>c__DisplayClass1.b__0() in c:\Users\Lewis Moten\Documents\GitHub\CheerfulDrill\LewisMoten.Spiders.CheerfulDrill.UI\Form1.cs:line 76
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
InnerException: