|
-
Nov 4th, 2008, 10:40 AM
#1
Thread Starter
Member
MSComm Question
I have written an application in which I use a MSComm control to communicate with a serial device. The default setting for the inputbuffersize is 1024 bytes. I open the port without altering this property. When I read the input buffer, my application inputs 4096 bytes. Before reading the buffer (using .Input), I break in my code and double-check the properties. .InBufferSize is 1024 and .InBufferCount is 4096.
Why is this happening?
-
Nov 4th, 2008, 10:50 AM
#2
Re: MSComm Question
The event get's called when there is 1024 bytes in the buffer, but by the time you actually read the data, there is more data in the buffer. Data comes in continuoslly... (streaming)
Of course this is just an assumption, you did not give enough info so I can make a better conclusion of your problem.
Like, what kind of data you are reading from the comm port ? what is the transfer/data rate ?
You did not post the code you are using to see if there is any problem with the code.
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
|