what actually happens when sending a message out of a repeat loop?

Tiemo Hollmann TB toolbook at kestner.de
Thu Jun 19 05:29:30 EDT 2008

Hi all,

perhaps a question, where I shouldn't have to think about, because it works,
but I would like to know what happens behind the scenes.

I have a repeat loop and send a message to another handler from within the
repeat loop with parameters, which change every loop.

If using a function call instead of the message, the main handler would wait
until the function returns back, but when sending a message, the loop is
running on. So what happens now, if the sub handler takes "much longer" as
the main handler and the loop turns hundred of times. Will all the send
messages to the sub handler with the changed parameters kept in the
messagequeue safely and being processed, even after the main handler has
finished already? Are there any limitations in message numbers or size of
this messagequeue?


Thanks for sharing





More information about the Use-livecode mailing list