[Gambas-user] Draw.Begin signal 11

Benoit Minisini gambas at ...1...
Thu Jul 10 18:50:35 CEST 2008


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,

-- 
Benoit Minisini




More information about the User mailing list