[Gambas-bugtracker] Bug #2310: Gambas Apps have isssues talking to other gambas apps started with exec

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Jul 17 02:16:28 CEST 2021


Comment #10 by Brian G:

Ok I just did some tests and confirm that depending on timing if all data arrives at one time, and eof is already recieved with the data then

Application-read is raised but lof() reports zero data.....

so the loop

i removed the check for lof() > 0 
Just take a change and do

   buffer = read #last, -254

everything works perfectly

Attached is the log and apps that show this.
the data arrived with the eof, lof() shows zero
the log reads Number of read : length of file reported : data


Attachment: TestWriteReadFromApp-0.0.3.tar.gz

Attachment: MyCat-0.0.49.tar.gz

Attachment: catlog.

More information about the Bugtracker mailing list