Results 1 to 2 of 2

Thread: MSComm Question

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    39

    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?

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    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
  •  



Click Here to Expand Forum to Full Width