call stack overflow in function not : =
Posted: Sat Jul 22, 2006 10:46 pm
anyone ever seen this error message before? i have a program that iterates through webpages and adds each link it finds to a list (queue) to check later, but when i reach about 10k list elements, i get the above error. the weird part is that the 10k element list has nothing to do with the regex or (not) function, at least in the execution of the script... this might be an internal bug where a stack is leaking or overflowing something else. this is newlisp 8.9.0.
this is the function it always crashes on. l is just a raw html link.
this is the function it always crashes on. l is just a raw html link.
Code: Select all
(define (friend? l)
(set 'ret (regex "friendid=(\\d+)" l 1))
(if (not (= ret nil))
(ret 3)
)
)