[Gambas-devel] signal 6 upon use of Blur method
Benoît Minisini
gambas at ...1...
Wed Feb 23 02:04:37 CET 2011
> > > The code:
> > >
> > > Public image1 As Image
> > >
> > > Public Sub Form_Open()
> > >
> > > image1 = New Image(96, 96, Color.RGB(0, 0, 0, 127), 1)
> > > image1.Blur(1)
> > >
> > > End
> > >
> > > crashes with signal 6.
> > >
> > > I'm using gb3 revision 3574 on Ubuntu 10.10 ia64. Components being used
> > > are gb, gb.gtk, gb.image, gb.image.effect, gb.image.imlib, gb.net and
> > > gb.sdl.sound. The backtrace and project are attached.
> >
> > It seems that the Blur and Sharpen methods of the imlib library free the
> > image data, whereas they should not, as the original image data is owned
> > by the gb.image component.
> >
> > Here is the solution: Blur and Sharpen will create a new image, and won't
> > try to work on the current data!
> >
> > Stay tuned...
>
> You can look for that fix in revision #3605.
>
> Regards,
I added a Image.Scroll() method in the imlib component (revision #3606). Maybe
you will have a use of it.
Regards,
--
Benoît Minisini
More information about the Devel
mailing list