|
-
Apr 4th, 2008, 07:21 AM
#1
Thread Starter
New Member
Running MSComm_onComm and a TcpListener socket in a separate thread hangs program
I am working with the MSComm Control in VB.NET, and I also run a TcpListener object in a separate thread to listen for incoming requests in an infinite while loop and call MSComm commands when it has received requests to connect to the comm port, send certain commands through the comm port, and so on.
My problem is that when the event MSComm_onComm is raised continuously due to the fact that there is a constant stream of data coming in from the comm port, the whole program freezes.
This problem doesn't occur if I don't have the TcpListener object running, ie. MSComm_onComm runs without any problem at all.
Would appreciate it anyone could explain what is wrong, as I am a newbie at this, Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|