[Gambas-user] Draw.Begin signal 11

Steven Lobbezoo steven at ...1652...
Fri Jul 11 12:49:47 CEST 2008


Sorry Benoit,

but my signal 11 ???
Maybe the same area ?

Thanks,
Steven


Le jeudi 10 juillet 2008 à 18:50 +0200, Benoit Minisini a écrit :

> On jeudi 10 juillet 2008, Ron wrote:
> > Benoit Minisini schreef:
> > > On jeudi 10 juillet 2008, Ron wrote:
> > >> When writing some code to display an image blob I got across a signal 11
> > >> bug.
> > >>
> > >> The code below crashes on the line
> > >> Draw.Image...
> > >>
> > >> I didn't specify the correct DrawingArea , it should be 'DrawingArea1'
> > >>
> > >> I guess it should report an error than it couldn't find the DrawingArea
> > >> specified instead.
> > >>
> > >> If you need a backtrace I can try to get one.
> > >>
> > >> Regards,
> > >> Ron_2nd
> > >>
> > >> PRIVATE SUB ShowCapture(iId AS Integer)
> > >>
> > >>   DIM pPicture as Picture
> > >>   DIM rResult AS Result
> > >>   DIM sTempFile AS String = Temp() & ".jpg"
> > >>
> > >>   rResult = Main.hDB.Exec("SELECT id,stamp,image FROM capture_camera" &
> > >> iCam & " WHERE id =" & iId)
> > >>   IF rResult.Count = 0 THEN RETURN
> > >>
> > >>   File.Save(sTempFile, rResult!image.Data)
> > >>
> > >>   pPicture = Picture.Load(sTempFile)
> > >>   Draw.Begin(DrawingArea)        '<---- wrong area filled in, should be
> > >> DrawingArea1
> > >>   Draw.Image(pPicture.Image, 0, 0) '< ---------------------- SIGNAL #11
> > >> here Draw.End
> > >>
> > >> END
> > >
> > > Which version of Gambas do you use? Do you use gb.qt or gb.gtk?
> >
> > Benoit,
> >
> > I use Gambas 2.7 rev 1433, with gb.qt
> > Debian 4.0 and 2 liters of coffee ;-)
> >
> > Regards.
> >
> 
> OK, fixed in revision #1444.
> 
> Regards,
> 



More information about the User mailing list