Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5454] number of variables limit ?

Date2004-11-21 20:47
FromOeyvind Brandtsegg
Subject[CSOUND-DEV:5454] number of variables limit ?
Is there a limit to the number of variables allowed in one single instrument ?
Or in one single orchestra ?
I keep running into this problem once in a while,
if I define a macro containing several lines of code,
then calling this macro several times.
I run into problems. Csound crashes after parsing the orchestra, during the "new alloc for instr x" phase.

The resulting instrument might contain something like 200 lines of code,
macros expanded.
It sometimes help if I split the code into several different instruments,
or, it might help if I delete another (!), nonrelated instrument.

I do not know if it is related to the overall size of the orchestra,
the overall size of the instrument, or something else entirely.
I know this is a lousy bug report, as I can not provide a simple test orchestra.
But every time I cut down the orchestra to make the error stand out alone,
the error vanishes. And beleive me, I've tried. Sometimes it might work if I delete one half of the orchestra, so I could beleive that the error was in the other half of my code.
But the other half of my code also runs perfectly when I leave out the first half.

stunned and a bit frustrated,
just wanted to ask if anyone has a bright idea on how to pin down the bug.

The bug appears in CsoundAV0.43 (csound4.19),
I have been unable to recreate the bug in csound 5 because the initialization error in csound 5 makes it skip a whole lot of orchestra i-statement anyway. 
So I do not know if this is something that has actually been fixed since 4.19

best,
Oeyvind

Date2004-11-21 21:19
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:5455] Re: number of variables limit ?
There was a bug in extending variables that I think was fixed some
time ago.   If CsoundAV0.43 is ~ csound4.19 (ie April 2002) then
someone needs to update the code! 

==John ffitch

2002-12-15  John ffitch  

	* otran.c (otran): Fencepost error in nulling extension of
	instrtxtp array

2002-07-10  John  

	* oload.c (oload): Fencepost error in when to enlarge
	strsets vector