Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeView Nodes do not update Pin
Covean31-Jan-10 23:09
Covean31-Jan-10 23:09 
GeneralRe: TreeView Nodes do not update Pin
Alex Manolescu31-Jan-10 23:57
Alex Manolescu31-Jan-10 23:57 
QuestionDisplaying Two Crystal Reports using Single CrystalReportViewer. Pin
Sanket.Patil31-Jan-10 19:04
Sanket.Patil31-Jan-10 19:04 
AnswerRe: Displaying Two Crystal Reports using Single CrystalReportViewer. Pin
basu.sit29-Mar-10 18:51
basu.sit29-Mar-10 18:51 
QuestionAxFramerControl for powerpoint preview Pin
jafaralik31-Jan-10 18:46
jafaralik31-Jan-10 18:46 
QuestionLooping through a CSV with threads Pin
Danpeking31-Jan-10 15:50
Danpeking31-Jan-10 15:50 
AnswerRe: Looping through a CSV with threads Pin
PIEBALDconsult31-Jan-10 15:57
mvePIEBALDconsult31-Jan-10 15:57 
AnswerRe: Looping through a CSV with threads Pin
Luc Pattyn31-Jan-10 16:26
sitebuilderLuc Pattyn31-Jan-10 16:26 
Hi,

you could open a streamreader on the file, then launch a few threads all executing the same code, containing this pseudo-code:
while(!allDone)
    lock the streamreader (or some other object)
    read one line from the streamreader, and set allDone true if no more data available
    unlock again
    process the line read, if any
}


allDone is a bool, starting false, shared by all threads.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


modified on Sunday, January 31, 2010 10:44 PM

GeneralRe: Looping through a CSV with threads Pin
PIEBALDconsult31-Jan-10 17:05
mvePIEBALDconsult31-Jan-10 17:05 
GeneralRe: Looping through a CSV with threads Pin
Luc Pattyn31-Jan-10 17:19
sitebuilderLuc Pattyn31-Jan-10 17:19 
GeneralRe: Looping through a CSV with threads Pin
Danpeking31-Jan-10 23:00
Danpeking31-Jan-10 23:00 
GeneralRe: Looping through a CSV with threads Pin
Luc Pattyn1-Feb-10 1:40
sitebuilderLuc Pattyn1-Feb-10 1:40 
AnswerRe: Looping through a CSV with threads Pin
#realJSOP31-Jan-10 23:51
mve#realJSOP31-Jan-10 23:51 
AnswerRe: Looping through a CSV with threads Pin
Dan Mos1-Feb-10 5:37
Dan Mos1-Feb-10 5:37 
AnswerRe: Looping through a CSV with threads Pin
Danpeking3-Feb-10 1:08
Danpeking3-Feb-10 1:08 
Questionwpf Pin
mehrdad33331-Jan-10 12:52
mehrdad33331-Jan-10 12:52 
AnswerRe: wpf Pin
Not Active31-Jan-10 13:20
mentorNot Active31-Jan-10 13:20 
AnswerRe: wpf Pin
Pete O'Hanlon31-Jan-10 22:27
mvePete O'Hanlon31-Jan-10 22:27 
Questionproblem by local ip Pin
mehrdad33331-Jan-10 12:41
mehrdad33331-Jan-10 12:41 
AnswerMessage Closed Pin
31-Jan-10 21:36
stancrm31-Jan-10 21:36 
GeneralRe: problem by local ip Pin
mehrdad3331-Feb-10 6:55
mehrdad3331-Feb-10 6:55 
QuestionWPF Interoperability problem Pin
newstargate31-Jan-10 12:22
newstargate31-Jan-10 12:22 
AnswerRe: WPF Interoperability problem Pin
Not Active31-Jan-10 13:22
mentorNot Active31-Jan-10 13:22 
AnswerRe: WPF Interoperability problem Pin
Pete O'Hanlon31-Jan-10 23:04
mvePete O'Hanlon31-Jan-10 23:04 
Questionnetwork programming Pin
hotthoughtguy31-Jan-10 9:18
hotthoughtguy31-Jan-10 9:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.