List Info

Thread: C-Sharp (C#) Group: Threading and Aborting




C-Sharp (C#) Group: Threading and Aborting
country flaguser name
United States
2007-09-10 07:42:24
Hi all,
I have this problem.
Now i have made this application where when u click on a
List View
Item .
I have files associated with it been loaded up in another
List View to
show the association.


Now the problem what i have is that when i have two
different list
view items call Item1 and Item2 and
when i select on Item1 which has like 3000 files associated
with it
and then when i try to switch from Item1
to Item2. The file associated with Item1 is shown + Item2 is
also
shown.
Item1 is shown because the thread which fetches the files is
still
running.

At present what i have done is ABort the worker thread which
does the
Fetching File association part.

Now my question is " Is there a better way to do this
other than
aborting the thread"?

Thank you,
Jacob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )