Page 1 of 1

Bug in WriteComm() [Fixed]

Posted: Fri Apr 17, 2015 12:53 pm
by Enrico Maria Giordano
The following sample freezes if you change 32767 to 32768. Any ideas?

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL nCom := OPENCOMM( "COM1", 16384, 16384 )

    LOCAL cDcb

    BUILDCOMMDCB( "COM1:57600,N,8,1", @cDcb )

    SETCOMMSTATE( nCom, cDcb )

    ? WRITECOMM( nCom, SPACE( 32767 ) )

    CLOSECOMM( nCom )

    RETURN NIL
EMG

Re: Bug in WriteComm()

Posted: Fri Apr 17, 2015 6:02 pm
by cnavarro

Re: Bug in WriteComm()

Posted: Fri Apr 17, 2015 6:39 pm
by Enrico Maria Giordano
Cristobal,

thank you.

EMG