hi people,
Is it only me or is qlist getting confused when one tries to send too many messages at once.
I have a file that sends messages to various parts in my patch including qlist (I've attached a [receive] box to it and send it "next" message from time to time). Some lines have small small delay times (100-300) some have none (say 3-10 lines in a row). Qlist returns an error saying that there's no method for x (x = message's destination). So at the same time when I have a [receive qlist_next] attached to qlist and I have a line in my text file:
100 qlist_next next;
qlist says: error: qlist: no method for 'qlist_next'
and it prints no method for '<some other destination>' as well.
Ideas?
"To be is to do" - Socrates "To do is to be" - Sartre "Do be do be do" - Sinatra "Just do it!" - NIKE "It" - Stephen King
I have seen this problem before when I accidently tried to send a message to a number box, it said 'no method....' so the only reason I can think of is that maybe your trying to send a message to an object that can't read messages? Also I'm not sure if qlist will send messages like normal messages, or rather I'm not sure if the messages outputted by qlist are the same as regular messages, for instance outputting a bang message has no effect on anything? Similarly outputting a message containing a 1 in it doesn't bang anything either, or so it seems. I have used qlist in the past with numbers and it seems very capible, have you thought about using select object which in turn will bang your message boxs? although you probably would like a better way, don't know if i have helped at all!
regards, Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
hi,
Michal Seta wrote: ...
100 qlist_next next;
...
I think this means that you are trying to use qlist recursively, and (have not checked it though) qlist_donext() is not reentrant.
Remember that in Pd there is no 'message queue' or 'message dispacher' of any sort -- messages are being sent immediately, ie. sending a message simply means calling a method (if target exists).
Thus if processing one 'next' request involves sending another 'next' request then this second request is handled through recursive invocation of the very same code that still has not finished handling the first request (and probably has not yet pulled out the final semicolon from current line -- just a guess).
Krzysztof
On 8/17/01 9:39 AM, "Krzysztof Czaja" czaja@chopin.edu.pl wrote:
hi,
Michal Seta wrote: ...
100 qlist_next next;
...
I think this means that you are trying to use qlist recursively, and (have not checked it though) qlist_donext() is not reentrant.
yup
Remember that in Pd there is no 'message queue' or 'message dispacher' of any sort -- messages are being sent immediately, ie. sending a message simply means calling a method (if target exists).
Aha! I forgot that!
Thus if processing one 'next' request involves sending another 'next' request then this second request is handled through recursive invocation of the very same code that still has not finished handling the first request (and probably has not yet pulled out the final semicolon from current line -- just a guess).
Thanks, I guess the same... I managed to get through the errors by delaying things a bit around...
Now I'm trying to do it in a _completely_ different way... so many ways, so little time.
./MiS
I've also noticed that qlist (also pack!) aren't reentrant. I'll try to get qlist fixed at lest for the next release. Pack is more subtle... beware reentering it for now...
cheers Miller
On Fri, Aug 17, 2001 at 01:32:38AM -0400, Michal Seta wrote:
hi people,
Is it only me or is qlist getting confused when one tries to send too many messages at once.
I have a file that sends messages to various parts in my patch including qlist (I've attached a [receive] box to it and send it "next" message from time to time). Some lines have small small delay times (100-300) some have none (say 3-10 lines in a row). Qlist returns an error saying that there's no method for x (x = message's destination). So at the same time when I have a [receive qlist_next] attached to qlist and I have a line in my text file:
100 qlist_next next;
qlist says: error: qlist: no method for 'qlist_next'
and it prints no method for '<some other destination>' as well.
Ideas?
./MiS
"To be is to do" - Socrates "To do is to be" - Sartre "Do be do be do" - Sinatra "Just do it!" - NIKE "It" - Stephen King