Variable not defined?

Hello, I’m doing some testing with a large block that has about 290 variables defined ( most of which are set to Pseq’s or other patterns ) and a Pbind. It was working fine but now I seem to be hitting an odd glitch trying to declare additional variables and wonder if I’ve hit some limit on memory or buffer size.

Now when I try to declare an additional variable, the Post window shows a ton of “ERROR: Variable not defined” messages, ( e.g. ERROR: Variable ‘lAllChordSeqMirror’ not defined. ). When I increase the Post window line size, I can see that every variable I’ve declared shows this error message. But I don’t see any error referring to memory or buffer size.

I’ve tried restarting the server with more memory and buffers per below but no change. I do plan to break this up into smaller blocks but am curious how to debug this since the error messages don’t seem helpful. I’m running on a MacBook Pro with 16gb of RAM and don’t see any SC memory issues from the IDE.

s.options.memSize = 262144;
s.options.numBuffers = 16384;
s.boot;

See this recent thread Max number of var's? - #7 by jordan

(The gist seems to be that the max # of vars is 256 and if you really need more in one block consider using a dictionary instead)

1 Like

Ah, that must be it, thanks so much!

Btw: variables are declared in the language – the server has no access to language variables (you can transmit data from variables to the server, but not have the server access x in the language directly), so, server settings about memory or buffers can’t have any impact on variable declaration.

hjh

1 Like