[Gambas-user] Weird but reproducable Signal 11 Gridview bug (2.99 1291 build)

Benoit Minisini gambas at ...1...
Mon Apr 7 19:46:53 CEST 2008


On samedi 5 avril 2008, richard terry wrote:
> I reckon someone should employ me as as a beta tester, cause I can kill
> just about anything with my stupidity.
>
> This bug is really way out there and will only occur under a strange
> circumstance. (project included).
>
> If you've a grid on the form,
>
>  AND the number of items in the grid exceeds the viewable area
>
>  AND the scoll bar property is set to either Both or Vertical (its really
> only the vertical component that kills the grid)
>
> AND   you are stupid enough (read me only ) to put any resizing code in the
> following event:
>
> Public Sub GridView1_ColumnResize(Column As Integer)
>
>   gridview1.columns.Width = gridview1.columns.Width + 10
>
> End
>
> Then gambas will reproducably die with signal 11.
>
> You are probably wondering why I put it there in the firstplace, well, I'd
> meant to put it in a mouse event to see what would happen if I clicked on
> the grid because when I first started playing with it today I  wondered why
> you couldn't grab the column and re-size it (until I realised that you have
> to have the headers set - which I didn't want).
>
> Anway,main point is it should be fixable.
>
> Regards
>
> Richard
>

OK, I fixed the crash in the revision 1299 & 1300. 

Curiously, the gb.gtk correctly raises the "Stack Overflow" error (you resize 
the column inside the ColumnResize event handler), whereas the gb.qt 
component handles that quietly. Maybe the underlying QT widget internally 
merges its column resize events, I don't know.

-- 
Benoit Minisini




More information about the User mailing list