error in console but sketch works?
in
Integration and Hardware
•
2 years ago
Hello
I am reading the 'Getting started with Processing' book and I am doing now example 10-8: filling an array in a for Loop.
I copied the code and run the sketch which works without any problem but the console shows me an error message. Could anyone tell what this means? Hereunder you can find the code followed by the error message.
================
float[] gray;
void setup() {
size(240, 120);
gray = new float[width];
for(int i = 0; i < gray.length;i++) {
gray[i] = random(0,255);
}}
void draw() {
for(int i = 0; i <gray.length;i++) {
stroke(gray[i]);
line(i,0,i,height);
}}
================
2011-02-28 18:23:12.858 java[14222:170f] *** Assertion failure in -[CocoaAppWindow _changeJustMain], /SourceCache/AppKit/AppKit-1038.35/AppKit.subproj/NSWindow.m:9470
2011-02-28 18:23:12.880 java[14222:170f] *** CPerformer: ignoring exception 'Invalid parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector 'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x116e890>'
================
1