Hello ! I'm writing a program that have to write some data in COM1 and after wait for an answer from COM2, before sending another thing. I'm using two threads: in the first I send data to COM1, in the other I have only called InstallCOM Callback for the COM2 and created a while auto-loop to avoid the end of the thread. In the first thread I wait for the receiving of data from COM2, staying in a loop that will end when a flag is setted; and this flag will be setted by the com callback installed in the second thread. Unfortunately it doesn't work correctly: the program send correctly data from COM1 and waits waits waits... datas arrived in COM2 doesn't call the comcallback, until the first thread is busy in the waiting loop. Why second thread doesn't work
if the first thread is busy ?
Thank you very much !