cyprus106
Programmer
- Apr 30, 2001
- 654
I have an application that runs several threads. On the main form, I have a RichEdit. Every time a certain event occurs in one of the threads, it sends a message to the main form and from there ive got:
RichEdit->Lines->Add("data"
RichEdit->Lines->Add("more data"
The problem is that often times several events will fire off at once and they all send messages to the main form. It will start the function, and add the first line, "data", but then restart the function for the other thread, without adding the second line. Is there any way I can tell the threads to wait, or do something like make the RichEdit be updating so it has to finish... any ideas?
Thanks, Cyprus
RichEdit->Lines->Add("data"
RichEdit->Lines->Add("more data"
The problem is that often times several events will fire off at once and they all send messages to the main form. It will start the function, and add the first line, "data", but then restart the function for the other thread, without adding the second line. Is there any way I can tell the threads to wait, or do something like make the RichEdit be updating so it has to finish... any ideas?
Thanks, Cyprus