Bug in WriteComm() [Fixed]
Posted: Fri Apr 17, 2015 12:53 pm
The following sample freezes if you change 32767 to 32768. Any ideas?
EMG
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