[Gambas-devel] Re; Bug?

Gareth Bult gareth at ...560...
Tue Jan 6 16:30:12 CET 2009


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 ? 

-- 
Managing Director, Encryptec Limited 
Tel: 0845 5082719, Mob: 0785 3305393 
Email: gareth at ...560... 
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20090106/96639d84/attachment.html>


More information about the Devel mailing list