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.
Page Index Toggle Pages: 1
Crash when using webcam (Read 1647 times)
Crash when using webcam
May 12th, 2005, 9:02am
 
Hey all, when I use the following code to test capturing from my webcam, my computer crashes/restarts when I close or move the window.  Do you think this is an error with my computer/webcam/processing/code?
It seems that Capture() triggers the error
This returns "Video Blaster WebCam Go ES (VFW)-WDM"

-thanks

import processing.video.*;
String[] CamName;
Capture WebCam;

void setup()
{
 size(200, 200);
 CamName = Capture.list();
 println(CamName[0]);
 WebCam = new Capture(this, CamName[0], width, height);
}

void cameraEvent(Capture WebCam) {
 WebCam.read();
}

void draw() {
 image(WebCam, 0, 0);
}
Re: Crash when using webcam
Reply #1 - May 12th, 2005, 4:41pm
 
are you using revision 90? there were problems with moving the window in earlier releases.

and have you read the faq thoroughly? http://processing.org/faq/bugs.html#video
Re: Crash when using webcam
Reply #2 - May 18th, 2005, 6:45am
 
yeah, I'm using 0090 and I did notice the window moving bit in the faq, but I'm more worried about my entire computer crashing whenever I just close the applet window

I could test it if I couldn't move the window, but not closing the applet is too much for me...
Re: Crash when using webcam
Reply #3 - May 18th, 2005, 7:01am
 
I'll try reinstalling quicktime & winvdig in the meantime

btw, my webcam readouts are:
Video Blaster WebCam Go ES (VFW)-WDM
Video Blaster WebCam Go ES (WDM)-WDM
any difference between the two?
Re: Crash when using webcam
Reply #4 - May 31st, 2005, 11:36am
 
yes, you need to use the second one
Page Index Toggle Pages: 1