[Gambas-user] Read in EXEC..... to Rob

Rob sourceforge-raindog2 at ...94...
Fri Oct 29 21:41:12 CEST 2004


On Friday 29 October 2004 11:43, LB Audio wrote:
> Message error in Gambas: Error -> End OF File

Not too surprising, see below...

> PUBLIC SUB Process_Read()
...
>   READ #LAST, sData, -255

OK, so you've read up to 255 characters from the process.

>       LINE INPUT #$hprocess, l ->>>>>>>>>>>>>>>>>>>>>>> Error

Now you're trying to read from the process again!  Unless it 
returned more than 255 characters you are going to get an error.

I suggest you remove that READ line, or put it in the ELSE block 
of the IF LAST.Id... statement.

Rob






More information about the User mailing list