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
Vdig problem or something else? (Read 938 times)
Vdig problem or something else?
Oct 22nd, 2009, 4:39am
 
Hi, I have a weird problem. Recently some of my webcam interface code stopped working and now I've found that all my video library applications seem a bit temperamental on my system.

For example I have the same webcam initialise code in two programs, one works every time while the other one (which is more complex generally, though the webcam process is the same) just hangs on compiling 95% of the time. It seems that it doesn't like the following essential line:
Code:
 cam = new Capture(this, 320, 240); 


In the other (good) code this works fine and I can display and manipulate the webcam input no problem.

I've found that I can repeat this problem using the processing examples (to save you helpful people from trying to understand my code). AsciiVideo works every time with my webcam while GettingStartedCapture doesn't compile (but doesn't give me any error messages, it just hands). What makes these two pieces of code so different when the initialise webcam routine is the same?

Do you think this could be a hardware issue or something to do with VDIG. The fact that AsciiVideo is so robust makes me think that this isn't the case but let me know if I'm wrong.

Any help appreciated :-)

Ad
Re: Vdig problem or something else?
Reply #1 - Oct 23rd, 2009, 9:47am
 
Just an update (for anyone who might be having a similar problem). I installed processing and WinVdig on another machine and my code works fine. Must be something funny going on with my laptop...

As before any suggestions are appreciated.
Re: Vdig problem or something else?
Reply #2 - Oct 23rd, 2009, 11:14am
 
Case Closed, I had been using Processed 0135... Beta!  Shocked (I didn't even realise, I've had it installed for so long I forgot it was a Beta version!).

Downloaded and installed the current stable release and all is good. Smiley
Page Index Toggle Pages: 1