S
Soulless
Is anyone aware of any issues running a loop inside a thread? I have
a thread running and inside of it I do a foreach on each row of a
datagrid and then i send an event back to the form to insert a row in
a text box. For each row on the datagrid, I add a line to the text
box... textbox += data.
The problem is my thread and the loop seem to have a problem where the
textbox has a good line or two and then every line after it is the
same. If I place a Sleep within the loop (ie. sleep(25)) then it
works fine.
Anyone encounter something weird like this?
a thread running and inside of it I do a foreach on each row of a
datagrid and then i send an event back to the form to insert a row in
a text box. For each row on the datagrid, I add a line to the text
box... textbox += data.
The problem is my thread and the loop seem to have a problem where the
textbox has a good line or two and then every line after it is the
same. If I place a Sleep within the loop (ie. sleep(25)) then it
works fine.
Anyone encounter something weird like this?