[Gambas-devel] Re; Bug?

Benoit Minisini gambas at ...1...
Fri Jan 9 15:08:08 CET 2009


On mardi 6 janvier 2009, Gareth Bult wrote:
> Hi,
>
> I'm trying the following code in 2.0 and trunk to the same effect;
>
> Blank page, one button (Button1), one picture object (MyFrame);
>
> ' Gambas class file
>
> Private hWebcam As VideoDevice
>
> Public Sub Form_Open()
> hWebcam = New VideoDevice("/dev/video0")
> End
>
> Public Sub Button1_Click()
> MyFrame.Picture = hWebcam.Picture '****
> End
>
> Fails with;
> "Unable to get image" on the marked line.
>
> /dev/video0 works fine on every other program I can try that uses a webcam
> .. gb.v4l broken ?

Daniel Campos wrote the component. I know nothing about v4l, so it's hard for 
me to guess what could be wrong.

Regards,

-- 
Benoit Minisini




More information about the Devel mailing list