Re: [Gambas-user] Bug with process events?

2013-12-10 Thread Jussi Lahtinen
Hmmm... not sure I understood correctly. Why then it doesn't fail every time? Anyway, what I'm really trying to do is raise event (when signal arises from another program), but wait until the system is IDLE. Here is the IDLE detection code: Do Exec ["xprintidle"] To sTmp Sleep 0.25 Lo

Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Benoît Minisini
Le 08/12/2013 18:06, Jussi Lahtinen a écrit : > See attached project. If event is raised something corrupts/event is missed. > > > Jussi > > EXEC ... TO (and SHELL ... TO) calls the event loop, so by using it inside the "Something" event handler, you are calling the event loop recursively, and a

Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Tobias Boege
On Mon, 09 Dec 2013, Jussi Lahtinen wrote: > > Although I don't know what you expect me to report, I get exactly one line > > asking "what went wrong". > > > > I attached a patch that fixes this without having to comment the Raise line > > out. Seems like Raise is taken by the interpreter as an opp

Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Jussi Lahtinen
> Although I don't know what you expect me to report, I get exactly one line > asking "what went wrong". > > I attached a patch that fixes this without having to comment the Raise line > out. Seems like Raise is taken by the interpreter as an opportunity to > process pending events? I don't know. >

Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Tobias Boege
On Mon, 09 Dec 2013, Jussi Lahtinen wrote: > Can someone try to reproduce this with other system? > > Jussi > > > On Sun, Dec 8, 2013 at 7:18 PM, Jussi Lahtinen > wrote: > > > Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit. > > > > Jussi > > > > > > On Sun, Dec 8, 2013

Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Jussi Lahtinen
Can someone try to reproduce this with other system? Jussi On Sun, Dec 8, 2013 at 7:18 PM, Jussi Lahtinen wrote: > Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit. > > Jussi > > > On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen > wrote: > >> See attached project. If event

Re: [Gambas-user] Bug with process events?

2013-12-08 Thread Jussi Lahtinen
Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit. Jussi On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen wrote: > See attached project. If event is raised something corrupts/event is > missed. > > > Jussi >

[Gambas-user] Bug with process events?

2013-12-08 Thread Jussi Lahtinen
See attached project. If event is raised something corrupts/event is missed. Jussi ProcessEventBug-0.0.1.tar.gz Description: GNU Zip compressed data -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid