I found out that reading one by one is a slow process, I found out that reading all Lof will in a rare instance _READ will not fire when only 1 byte arrives immediately after. I find it works correctly 100% when I read Lof()-1 and rely on _Read to fire again. for the one remaining and the new one arriving immediately after.
---------- Original Message ----------- From: Benoît Minisini <gam...@users.sourceforge.net> To: nand...@nothingsimple.com, mailing list for gambas users <gambas-user@lists.sourceforge.net> Sent: Sat, 5 Dec 2009 21:56:41 +0100 Subject: Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic > > Benoit, > > Just to let you know, for your information only. > > My serial port applicationS that have been running 24 hours for 4 years on > > over 150 computers works much better when pull out All less 1 byte each > > _Read event as opposed to. > > I didn't understand the last sentence. Do you read bytes one by one or all at > once? You should read all available bytes at once, by using the Lof() > function. > > Regards, > > -- > Benoît Minisini > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user