Hi Benoit,

I'm using Application_Read() in a project now and it seems to misbehave. I
have attached a project which mirrors its input from within
Application_Read() using the Debug instruction.

The problem is, even though the file I am redirecting in is completely read,
Application_Read() is still called with no end:

$ echo "abc" >/tmp/file
$ gbx3 </tmp/file
MMain.Application_Read.12: abc
MMain.Application_Read.12:
MMain.Application_Read.12:
MMain.Application_Read.12:
^C

Maybe there is some feof(stdin) check missing to stop the watch since to
select(2), the file is still readily readable at the EOF. As callback_read()
in gbx_c_file.c seems to be widely shared, I don't want to mess around with
it without knowing the rest of the code.

Regards,
Tobi

Attachment: application-read-spin-0.0.1.tar.gz
Description: Binary data

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to