Re : Maximum Number of Items in an Array
You can have a 32-bit Processing / Java stack on your 64-bit Windows.See https://forum.processing.org/topic/32-bit-or-64-bit-processingIf you really need lot of memory, I believe latest beta of...
View Articlehow to save serial data received from arduino
hello everyone, i apologize for my bad english yet, hope you can understand what my problem is:i'm using arduino to take voltage values, then i send them to the serial port in this...
View ArticleRe : Minim- "Unexpected token: \"
Maybe just download the latest stable release (1.5.1.) and check if the minim examples work there!
View ArticleRe : Question for a Newbie
Hello hawk_08,Try with this one. The upper case on Serial should be lower case. Be aware, Processing is CASE SENSITIVE. // Example by Tom Igoeimport processing.serial.*;// The serial port:Serial...
View ArticleRe : Question for a Newbie
Thanks for your answer!I still get an error message tough...ArrayIndexOutOfBoundsException: 0WARNING: RXTX Version mismatch Jar version = RXTX-2.2pre1 native lib Version = RXTX-2.2pre2Exception...
View Article2.x PGraphics thread crash
So I create a buffer to do some work in a separate thread so it does not delay the normal draw. This worked fine in 1.x. Any thoughts on why this now crashes and how to get around it?import...
View ArticleRe : 2.x PGraphics thread crash
A P2D/P3D buffer is OpenGL-backed now (the old software-based P3D is gone in 2.0). OpenGL cannot be used from a thread different from the main thread that created the GL context.
View ArticleRe : 2.x PGraphics thread crash
Andres, any way to create another GL context separate from the one being used to draw? I use this a lot for color picking. Or perhaps, is their a suitable replacement that may not depend on the GL...
View ArticleRe : how to save serial data received from arduino
It looks like if you only save values to the first index of your arrays, because "i" is set to "0" at the beginning of the serialEvent()-function. You are not describing what exactly is your problem,...
View ArticleRe : 2.x PGraphics thread crash
I got this to work... not sure how safe it is though....import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;PGraphics buffer;boolean runthread = false;ExecutorService...
View ArticleStrange XML structrue after Facebook call.
I am trying to access profile data via the Facebook Graph Api like described here:http://wiki.processing.org/w/Facebook,_REST_APII have to say. I am very unexperienced with XML. So this might be a real...
View ArticleRe : Strange XML structrue after Facebook call.
How do you initialize the xml variable?Also, are you using 1.5.1 or 2.0b? The XML handling changes a lot between the two versions. The wiki probably refers to the old method.
View ArticleRe : Strange XML structrue after Facebook call.
I am using 1.5.1 for now. Would you recon switching to the new one?I really just did a straight copy and paste from the wiki. So initialization goes like this: String xmlResponse = fbCallMethod( new...
View ArticleRe : Strange XML structrue after Facebook call.
The page you link to uses: usersXml = xml.getChildren( "user" );So it skips the cruft and jumps straight at the useful data.
View ArticleRe : Strange XML structrue after Facebook call.
yeah. but then i get null pointer. check out my first entry. there are no childs. just a big root!
View ArticleRe : Strange XML structrue after Facebook call.
I see the last line:</Users_getInfo_response>/>If that's the real data and not a copy / paste error, then the XML is wrong and Processing is confused.
View ArticleRe : Strange XML structrue after Facebook call.
aha.. he does that when parsing the String to the XMLElement. So the String is right:<Users_getInfo_response xmlns="http://api.facebook.com/1.0/"...
View ArticleRe : how to save serial data received from arduino
i kinda solved it with this code:void serialEvent(Serial port) { measure = commPort.readStringUntil('\n'); if (measure != null) { String[] valori_misura = new String[5]; valori_misura =...
View ArticleRe : Strange XML structrue after Facebook call.
Try replacingXMLElement xml = new XMLElement(xmlResponse);withXMLElement xml = XMLElement.parse(xmlResponse);
View Article