We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › exceeding bytes limit error message
Page Index Toggle Pages: 1
exceeding bytes limit error message? (Read 635 times)
exceeding bytes limit error message?
Nov 4th, 2009, 3:35pm
 
Hi,

I am getting this error message:

The code of constructor (my name of the processing sketch) is exceeding the 65535 bytes limit.

I wondered if this is to do with the length of arrays of x and y co-ordinates that I am passing into certain constructors?

How would I pass it in using an XML file? And would this help?

An example of the code used is:

Here is an example array of x and y values for the letter L:

Code:
float[] xposL = {40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40,  45, 50, 50, 55, 55,  60,  60, 65,    40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40,  45, 50, 50, 55, 55,  60,  60, 65,	     40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40,  45, 50, 55, 60,  60,	 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40,  45, 50, 55, 60,  60,		40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40,			40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40, 40,40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,  40,  40, 40, 40,  40,  40,  40,  40, 40, 40};
float[] yposL = {40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140,140,140,140,140,140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140,140,140,140,140,140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140, 140, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,140, 140, 140, 140, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140, 40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140,40,45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110,115, 120, 125,130, 132, 135, 140};


And here is the constructor that uses it:

Code:
     attractorL = new AttractorL[NUM_ATTRACTORS_L];
for (int i = 0; i < attractorL.length; i++)
{
attractorL[i] = new AttractorL(xposL[i],yposL[i]);
}


particleL = new ParticleL[r];
for (int i = 0; i < particleL.length; i++)
{
particleL[i] = new ParticleL(xposL[i],yposL[i], r);
}


Thanks
Re: exceeding bytes limit error message?
Reply #1 - Nov 5th, 2009, 5:10am
 
Perhaps make a tab per letter (or group of letters)?
Or as you guessed, you should make a data file, a simple one with one value per line (preceded by a line with a letter name and perhaps another holding the number of values) should be OK.
Page Index Toggle Pages: 1