Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-06 Thread Tony
Benoît Minisini wrote: 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 o

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-06 Thread Benoît Minisini
> 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 t

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread nando
arriving immediately after. -- Original Message --- From: Benoît Minisini To: nand...@nothingsimple.com, mailing list for gambas users Sent: Sat, 5 Dec 2009 21:56:41 +0100 Subject: Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic > >

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> 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

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread nando
e and this worked better. Still Using 1.0.18 or .19 and solid as a rock!! -Fernando -- Original Message --- From: Benoît Minisini To: mailing list for gambas users Sent: Sat, 5 Dec 2009 20:48:26 +0100 Subject: Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> > > > Benoit, > > > > runned valgrind tool for a while. > > > > And I got a rather strange winner, I got 3 milion calls of _add_char in > > gb_error.c > > > > Some debug code hanging around or something like that? > > > > See attached valgrind file. > > > > Regards, > > Ron_2nd. > > The reason i

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> Benoît Minisini schreef: > >> Benoît Minisini schreef: > >>> It should be ok with revision #2456! > >>> > >>> If it really works, can you check that changing the flow control > >>> between None and something else actually has an effect on CPU > >>> consumption? > >> > >> Benoît, > >> > >> no segf

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Jean-Yves F. Barbier
Ron a écrit : ... > runned valgrind tool for a while. > > And I got a rather strange winner, I got 3 milion calls of _add_char in > gb_error.c > > Some debug code hanging around or something like that? > > See attached valgrind file. May be that's a source for what I noticed (Debian sid, XP2

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Ron
Benoît Minisini schreef: >> Benoît Minisini schreef: >> >>> It should be ok with revision #2456! >>> >>> If it really works, can you check that changing the flow control between >>> None and something else actually has an effect on CPU consumption? >>> >> Benoît, >> >> no segfaults, but

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> Benoît Minisini schreef: > > It should be ok with revision #2456! > > > > If it really works, can you check that changing the flow control between > > None and something else actually has an effect on CPU consumption? > > Benoît, > > no segfaults, but the system load when running my project wit

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Ron
Benoît Minisini schreef: > It should be ok with revision #2456! > > If it really works, can you check that changing the flow control between None > and something else actually has an effect on CPU consumption? > > Benoît, no segfaults, but the system load when running my project with the patch

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
It should be ok with revision #2456! If it really works, can you check that changing the flow control between None and something else actually has an effect on CPU consumption? -- Benoît Minisini -- Join us December 9,

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Ron
Benoît Minisini schreef: >>Benoit, >>Here is the output of valgrind as requested. I hope it helps. >>Regards, >>Tony.. >>$ valgrind --tool=memcheck --num-callers=50 gbx2 >>==2404== Memcheck, a memory error detector >>==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Ju

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
>Benoit, >Here is the output of valgrind as requested. I hope it helps. >Regards, >Tony.. >$ valgrind --tool=memcheck --num-callers=50 gbx2 >==2404== Memcheck, a memory error detector >==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. >==2404==

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Tony
Benoit, Here is the output of valgrind as requested. I hope it helps. Regards, Tony.. $ valgrind --tool=memcheck --num-callers=50 gbx2 ==2404== Memcheck, a memory error detector ==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==2404== Using Valgrind

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Ron
Ron wrote: > Benoît Minisini wrote: >>> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: >>> Hi Benoit, I have muddled my way through the subversion bit, hopefully correctly and compiled the 2454 version. When opening my application I get the error message "Th

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Ron
Benoît Minisini wrote: >> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: >> >>> Hi Benoit, >>>I have muddled my way through the subversion bit, hopefully correctly >>> and compiled the 2454 version. When opening my application I get the >>> error message "The program has stopped un

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Charlie Reinl
Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: > Hi Benoit, >I have muddled my way through the subversion bit, hopefully correctly and >compiled the 2454 version. When opening my application I get the error >message "The program has stopped unexpectedly raising signal #11" with

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Tony
Hi Benoit, I have muddled my way through the subversion bit, hopefully correctly and compiled the 2454 version. When opening my application I get the error message "The program has stopped unexpectedly raising signal #11" with the CPU at 100%. If I try to open the wrong ttyUSBx, the

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Benoît Minisini
>Thanks Benoit and all for your speedy replies.. >I'm using the serial port in a timing application with 3 laser through > beam sensors feeding into the CTS, RI and DSR lines of the serial port. In > this mode I don't pass any data, don't really care about flow control and > am only inte

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony
Thanks Benoit and all for your speedy replies.. I'm using the serial port in a timing application with 3 laser through beam sensors feeding into the CTS, RI and DSR lines of the serial port. In this mode I don't pass any data, don't really care about flow control and am only interes

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony
Thanks for the suggestion Ricardo. I have already compiled G2.18 from source onto Ubuntu 9.04. The application was working fine on Ubuntu 9.04 with G2.8 but fails with G2.18, so this makes me think that there is a problem which may have been introduced between G2.8 and G2.13 (the b

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Ricardo Díaz Martín
Tony, Try to compile gambas2 again. I got similar problem with apps after upgrade ubuntu from 9.04 yo 9.10 and it was necessary to do this: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev

[Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony
Hi, I have a Gambas2 application (gb.qt) checking for status change events on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to serial converter (Prolific pl2303) which works fine on Ubuntu 9.04 (Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to Ubuntu 9.10 (Gam