Draw.Begin signal 11

View: New views
5 Messages — Rating Filter:   Alert me  

Draw.Begin signal 11

by Ron Klinkien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

-------------------------------------------------------------------------
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
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Draw.Begin signal 11

by Benoit Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Draw.Begin signal 11

by Ron Klinkien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

-------------------------------------------------------------------------
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
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Draw.Begin signal 11

by Benoit Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

-------------------------------------------------------------------------
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
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Draw.Begin signal 11

by steven Lobbezoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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,
>
-------------------------------------------------------------------------
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
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user
LightInTheBox - Buy quality products at wholesale price