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.
IndexSuggestions & BugsSoftware Bugs › Double output from draw()
Page Index Toggle Pages: 1
Double output from draw() (Read 1312 times)
Double output from draw()
May 30th, 2007, 7:38pm
 
*Really sorry if this exists in another topic. Searched the discourse far and wide but found nothing*

Issue:
In 0124, I'm getting double output in the text area when using print() in draw().

Everything's OK in "basic" mode (example 1) but when in continuous mode (examples 2,3 & 4), I get double output, even after stopping the program with noLoop().

Example 1:
---------
print("hello"); //text area output: hello



Example 2:
---------
void draw() {
 print("hello"); //text area output: hellohello
 noLoop();
}



Example 3:
---------
void setup() {
 noLoop();
}

void draw() {
 print("hello"); //text area output: hellohello
}



Example 4:
---------
void setup() {
 noLoop();
}

String val = "hello";

void draw() {
 print(val); //text area output: hellohello
}

I've never encountered this...the only possible reason I can think of is the fact that I've recently switched to Vista.

Has anyone had this problem?

Cheers!
Petros

PS - println() behaves in the same way...
Re: Double output from draw()
Reply #1 - Jun 24th, 2007, 7:22pm
 
might be a vista problem, please file it in the bugs db. also please try it with the version of processing that includes java just to make sure.
Page Index Toggle Pages: 1