Thread Initialisation.......
-
:confused:Hi All, I have a problem in my embedded VC++ which is as follows: There is a Read Thread created during WM_CREATE event, which is supposed to read data from the COM1 port as and when it receives data.I have created the thread in such a way that it is active right from the point of creation - hReadThread = CreateThread (NULL, 0, PortRead, 0, 0, &dwThreadId); The problem is I dont know why the data is not read from COM1 though the read thread is active right from start. It would be very helpful if you could kindly help em out. Thanx Deepa.
-
:confused:Hi All, I have a problem in my embedded VC++ which is as follows: There is a Read Thread created during WM_CREATE event, which is supposed to read data from the COM1 port as and when it receives data.I have created the thread in such a way that it is active right from the point of creation - hReadThread = CreateThread (NULL, 0, PortRead, 0, 0, &dwThreadId); The problem is I dont know why the data is not read from COM1 though the read thread is active right from start. It would be very helpful if you could kindly help em out. Thanx Deepa.
Hi, Are you sure that COM1 was not opened before your thread has started? Sincerely Yours, RadioShark
-
:confused:Hi All, I have a problem in my embedded VC++ which is as follows: There is a Read Thread created during WM_CREATE event, which is supposed to read data from the COM1 port as and when it receives data.I have created the thread in such a way that it is active right from the point of creation - hReadThread = CreateThread (NULL, 0, PortRead, 0, 0, &dwThreadId); The problem is I dont know why the data is not read from COM1 though the read thread is active right from start. It would be very helpful if you could kindly help em out. Thanx Deepa.
-
Hi, Are you sure that COM1 was not opened before your thread has started? Sincerely Yours, RadioShark
Hi, Actually I am reading from COM7 using a bluetooth gateway.I have opened COM7 before creating the read thread. Regards, Deepa.
-
Hi, Actually I am reading from COM7 using a bluetooth gateway.I have opened COM7 before creating the read thread. Regards, Deepa.
Hi, Investigate return code after attemp of opening the port. I think that you have to open COM7 in the same thread. Sincerely Yours, RadioShark