[Gambas-user] Draw.Begin signal 11
Ron
ron at ...1740...
Thu Jul 10 14:47:20 CEST 2008
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
More information about the User
mailing list