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 Minisini
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user