[Gambas-user] IDE crash with browse

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Oct 15 17:01:42 CEST 2010


Hi!
Way to reproduce the problem:
1. Open search window
2. type some word for search
3. click browse
4. press arrow key to right or left

Reason:
If gvwFind is not in focus, it has no current row, ie gvwFind.Row = -1.
Crash when;
hFind = $aBrowse[gvwFind.Row]
@ Public Sub gvwFind_Select()

Suggestion:
Add following code to Sub gvwFind_Select.

  If gvwFind.Row = -1 Then
  gvwFind.Row = 0 ' Prevents crash.
  gvwFind.Column = 1 ' Makes browsing with arrow keys smoother.
  Endif


Gambas 3 rev 3265 @Ubuntu 10.04 64bit

Jussi



More information about the User mailing list