J
jayderk
I was playing with the code a bit and was wondering if you had any
suggestions on how to fix this problem I am having.
first... I have the mainForm start a seperate thread that opens the comm
port. It then goes in to a while loop (that calles CEAPI.ReadFile) until a
condition is met.. it then exits the while loop closes the
connection(CloseHandle) and the thread terminates.
I seperated out the createFile and CloseHandle methods so I can leave the
comm port open.
I notice it sits at CEAPI.ReadFile for a long time..
My question> is there a SAFE way to close the connection and kill the thread
while it is sitting at CEAPI.ReadFile? It says in Microsoft Core Reference
the Abort is not supported in the CF.
thanks in advance
Jay
suggestions on how to fix this problem I am having.
first... I have the mainForm start a seperate thread that opens the comm
port. It then goes in to a while loop (that calles CEAPI.ReadFile) until a
condition is met.. it then exits the while loop closes the
connection(CloseHandle) and the thread terminates.
I seperated out the createFile and CloseHandle methods so I can leave the
comm port open.
I notice it sits at CEAPI.ReadFile for a long time..
My question> is there a SAFE way to close the connection and kill the thread
while it is sitting at CEAPI.ReadFile? It says in Microsoft Core Reference
the Abort is not supported in the CF.
thanks in advance
Jay