Bug in WriteComm() [Fixed]

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Bug in WriteComm() [Fixed]

Post by Enrico Maria Giordano »

The following sample freezes if you change 32767 to 32768. Any ideas?

Code: Select all | Expand

#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
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Bug in WriteComm()

Post by cnavarro »

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
Post Reply