seanwitte
29-10-2003, 18:33
I'm using P-Invoke to make some calls to the Win32 API with C# running in version 1.1 of the .NET framework.
I'm opening a port using the system default receive buffer size. When I make a call to GetCommProperties() its telling me that the receive buffer is growing beyond its declared size. The size is 100 bytes, but it will keep growing as long as I'm throwing data at it. If I disconnect the cable it will keep processing data from the buffer until its empty.
My question is whether there is some other setting that you need change so that the receive buffer is fixed or if this is a bug. I'm using XP Pro and the serial cable is connected through a USB adapter. Thanks in advance.
<EDIT>
Its definately the USB adapter. The buffer stays a fixed size on my other machine with a proper RS-232 port. Be careful if you're using a USB-serial adapter because the recieve buffer will keep growing. Will post information if I can find anything from Belkin.
</EDIT>
I'm opening a port using the system default receive buffer size. When I make a call to GetCommProperties() its telling me that the receive buffer is growing beyond its declared size. The size is 100 bytes, but it will keep growing as long as I'm throwing data at it. If I disconnect the cable it will keep processing data from the buffer until its empty.
My question is whether there is some other setting that you need change so that the receive buffer is fixed or if this is a bug. I'm using XP Pro and the serial cable is connected through a USB adapter. Thanks in advance.
<EDIT>
Its definately the USB adapter. The buffer stays a fixed size on my other machine with a proper RS-232 port. Be careful if you're using a USB-serial adapter because the recieve buffer will keep growing. Will post information if I can find anything from Belkin.
</EDIT>