[Pd] Stack Overflow

Chuckk Hubbard badmuthahubbard at gmail.com
Fri Mar 24 06:28:19 CET 2006


How does this look?


On 3/23/06, Tim Blechmann <TimBlechmann at gmx.net> wrote:
> On Thu, 2006-03-23 at 06:59 -0500, Chuckk Hubbard wrote:
> >
> > Can anyone explain more about what exactly "stack overflow" is?  Might
> > it help if I just put a 1 ms delay for each scalar?
>
> you've written a recursive patch, so each recursion increases the
> interpreter stack ... if your recursions are happening too often ...
> booooooom ... :-/
>
> it's probably better to solve something like this with an iteration,
> which doesn't use the stack ... in pd it can be done with the |until|
> object ...
>
> hth ... tim
>
> --
> TimBlechmann at gmx.de    ICQ: 96771783
> http://www.mokabar.tk
-------------- next part --------------
#N canvas 574 319 660 625 12;
#X obj 108 41 inlet;
#X obj 77 339 outlet;
#X msg 108 185 next;
#X obj 108 75 route bang next;
#X obj 183 340 outlet;
#X obj 108 233 pointer \$1;
#X obj 108 153 until;
#X obj 77 284 t p b;
#X msg 164 175 traverse pd-score;
#X obj 108 109 t b b;
#X obj 183 286 t b b;
#X connect 0 0 3 0;
#X connect 2 0 5 0;
#X connect 3 0 9 0;
#X connect 3 1 6 0;
#X connect 5 0 7 0;
#X connect 5 2 10 0;
#X connect 6 0 2 0;
#X connect 7 0 1 0;
#X connect 7 1 6 1;
#X connect 8 0 5 0;
#X connect 9 0 6 0;
#X connect 9 1 8 0;
#X connect 10 0 4 0;
#X connect 10 1 6 1;


More information about the Pd-list mailing list