Error allocating stack memory - 07/07/06 11:34 PM
I'm getting a "Error allocating stack memory" error message when trying to parse a $findfile within a while loop (300 times{300 folders} for 7000 odd files) it's performing aline @window $nopath($1-) for each file within the $findfile identifier itself. then filtering the window to a file.
I know its not the filtering because it can handle way more than 7000 lines.... so....
What could be causing this, I'm almost sure it's to do with the number of folders because it worked fine with the same number of files within only 164 folders(and tested tonight for a similar number of files on 250 folders)
What is stack memory? Is it like stacks where everything goes on top and to get to the bottom data you need to remove all the top stuff? Is there a workaround or do I just parse every 250 folders worth??
%billy.num is incremented in another alias and then passed to this one...
it's not a while loop but it does keep calling the alias once it's parsed and until %billy.num is maxed.
%billy is unset at the end of each folder(which can be one file or 5000)
(why do i get the feeling i've confused everyone!)
btk
I know its not the filtering because it can handle way more than 7000 lines.... so....
What could be causing this, I'm almost sure it's to do with the number of folders because it worked fine with the same number of files within only 164 folders(and tested tonight for a similar number of files on 250 folders)
What is stack memory? Is it like stacks where everything goes on top and to get to the bottom data you need to remove all the top stuff? Is there a workaround or do I just parse every 250 folders worth??
Code:
set %billy $findfile($eval( % $+ billy.wavdir $+ %billy.num , 3 ), *.wav, * , aline @billy $nopath($1-) )
%billy.num is incremented in another alias and then passed to this one...
it's not a while loop but it does keep calling the alias once it's parsed and until %billy.num is maxed.
%billy is unset at the end of each folder(which can be one file or 5000)
(why do i get the feeling i've confused everyone!)
btk