View Issue Details

IDProjectCategoryView StatusLast Update
0000874PicoCOM1Serial Driver/Interfacepublic2017-08-31 12:56
ReporterKiepferAssigned To 
PriorityhighSeverityminorReproducibilityhave not tried
Status assignedResolutionfixed 
Product VersionV1.19 
Target VersionV1.28 
Summary0000874: Special timeout case on reading not handled correctly.
DescriptionThere is a special timeout combination available that is documented in the COMMTIMEOUTS description (http://msdn.microsoft.com/en-us/library/aa363190(VS.85).aspx)
=> see additional information

This timeout was not handled in the COM_Read() function.

The problem appeared when using the BaseStream class to read data.
Additional InformationIf an application sets ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant to a value greater than zero and less than MAXDWORD, one of the following occurs when the ReadFile function is called:

    * If there are any bytes in the input buffer, ReadFile returns immediately with the bytes in the buffer.
    * If there are no bytes in the input buffer, ReadFile waits until a byte arrives and then returns immediately.
    * If no bytes arrive within the time specified by ReadTotalTimeoutConstant, ReadFile times out.
Forum Link
Found Driver VersionV1.5
Fixed Driver VersionV1.6

Activities

There are no notes attached to this issue.