FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Bug in WriteComm() [Fixed]
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in WriteComm() [Fixed]
Posted: Fri Apr 17, 2015 12:53 PM
The following sample freezes if you change 32767 to 32768. Any ideas?

Code (fw): Select all Collapse
#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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Bug in WriteComm()
Posted: Fri Apr 17, 2015 06:02 PM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in WriteComm()
Posted: Fri Apr 17, 2015 06:39 PM

Cristobal,

thank you.

EMG

Continue the discussion