Re: [Harbour] win_prt.c and win_tprt.prg

2009-09-10 Thread Viktor Szakáts
Thanks Alex. May I ask you to send it as attachments? (if you did this already, pls try .zipping it first) [ this way formatting is lost in various ways depending on how I'm trying to extract/copy it. ] Brgds, Viktor On 2009.09.09., at 16:19, Alex Strickland wrote: Viktor Szakáts wrote: In

Re: [Harbour] win_prt.c and win_tprt.prg

2009-09-09 Thread Alex Strickland
Viktor Szakáts wrote: Initialization is better be done dynamically if we want to avoid consuming a relatively large amount of space in .exe files. This needs some extra logic. Of course the while thing could get dynamically allocated COM port structures to really make it scalable. 256 is the ma

Re: [Harbour] win_prt.c and win_tprt.prg

2009-09-08 Thread Viktor Szakáts
Hi Alex, On 2009.09.08., at 5:16, Alex Strickland wrote: Hi Viktor I have changed a few things here, made it a bit more consistent (setting queue size and timeouts) and added to your parameter checking (initialised the port handles to -1). I have changed the name of the Error() method to

Re: [Harbour] win_prt.c

2009-08-26 Thread Viktor Szakáts
Hi Alex, I see you made this change to win_prt.c in WIN_PORTREAD: lpBuffer = ( char * ) hb_xgrab( dwNumberOfBytesToRead + 1 ); and: if( ! hb_storclen_buffer( lpBuffer, dwNumberOfBytesRead, 2 ) ) where I originally coded something like: lpBuffer = ( char * ) hb_xgrab( dwNumb