Comm32 Logo
Home Button  Buy Button 

Topic:   The default buffer cannot be less than 4096 ! Why?

By: AlexMPosted on: Oct 7 2018 at 04:43:46 AM
V9
SComm1.OutBufferSize = 1024
SComm1.InBufferSize = 512

=> always =4096 !!!

By: GuestPosted on: Oct 10 2018 at 07:36:57 AM
Why do you need such small buffers? Surely your computer has hundreds of megabytes maybe even gigabytes of memory so why fiddle about with 'byte' sized buffers. Bigger buffers reduce processing overhead and reduce chances of buffer overflow.

On the other hand if you really need MSComm32 behavior then you'd need to stick with MSComm32

By: Guest2Posted on: Oct 11 2018 at 03:50:19 AM
A modern version of Windows is handling 100's of separate tasks. Some display adapters can even disable serial port IRQ for small periods of time.

I assume the guys at SComm just think that any InBufferSize smaller than 4096 is unsafe and, as previous 'guest' said. Your PC has more than enough memory so that size buffer is not going to cause you any problems.

Reply - add a comment to this topic.

You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected.

Topic:- The default buffer cannot be less than 4096 ! Why?


Enter the numbers.

Your name here is optional