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 & HelpPrograms › window closes immediately
Page Index Toggle Pages: 1
window closes immediately (Read 219 times)
window closes immediately
Oct 29th, 2008, 12:30pm
 
hello

i´ve got this code. if i start processing the window closes immediately.

PImage img;
import JMyron.*;
JMyron m;

void setup()
{
 size(200,200);
 m = new JMyron();
 m.start(width,height);
 m.findGlobs(0);
   img = loadImage("test.jpg");
}

void draw()
{
 background(0);
 m.update();
 m.imageCopy(pixels);//draw image to stage
 updatePixels();
 image(img, 50, 50);
 image(img, mouseX-50, mouseY-50);
}
Page Index Toggle Pages: 1