[Gambas-user] New Doc: EVENT LOOP question

nando nando_f at ...951...
Mon Dec 19 16:31:50 CET 2005


Actually, the WAIT must RETURN because the code picks up
where it left off at (when the WAIT was performed)
Does the Interpreter stack fill up or real stack fill up.
-Fernando


---------- Original Message -----------
From: "nando" <nando_f at ...951...>
To: gambas-user at lists.sourceforge.net
Sent: Mon, 19 Dec 2005 10:12:26 -0500
Subject: Re: [Gambas-user] New Doc: EVENT LOOP question

> My question was really supposed to be something like:
> 
> If I write a SUB with a very long running process and I use WAIT 
> inside it, my Gambas program will eventually die from stack overflow? 
> Does the stack get fixed up (popped) when the very long running SUB 
> finishes...do all the WAIT calls get returned ??
> 
> -Fernando
> 
> ---------- Original Message -----------
> From: Benoit Minisini <gambas at ...1...>
> To: gambas-user at lists.sourceforge.net
> Sent: Mon, 19 Dec 2005 13:56:52 +0100
> Subject: Re: [Gambas-user] New Doc: EVENT LOOP question
> 
> > On Monday 19 December 2005 13:48, nando wrote:
> > > Benoit,
> > >
> > > In the section...  http://www.gambasdoc.org/help/cat/eventloop
> > >
> > > there is a phrase...
> > > You can call recursively the event loop by using the WAIT instruction. This
> > > may lead to infinite recursion, but this is the only way to refresh the
> > > user interface while doing a long processing.
> > >
> > > My question is: Recursion means that a CALL is performed and the stack is
> > > pushed. So, infinite recursion really leads to a stack overflow.
> > > Is this true ?
> > >
> > > -Fernando
> > >
> > 
> > Yes!
> > 
> > -- 
> > Benoit Minisini
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
> > files for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------- End of Original Message -------
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
> files for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list