[Gambas-user] Re: gambas segfaulting

Laurent Carlier lordheavy at ...512...
Wed Jul 21 00:37:58 CEST 2004


>
> This is not a segfault, this is just a "normal" error in the IDE :-)
>
> To fix it, replace the lvwComp_KeyPress function in FCompletion by the
> following:
>
> PUBLIC SUB lvwComp_KeyPress()
>
>   DIM hEditor AS GambasEditor
>   DIM hForm AS FEditor
>
>   'IF Key.Code = Key.Escape THEN ME.Hide
>
>   hEditor = GetEditor()
>   hEditor.SetFocus
>   hForm = hEditor.Window
>   hForm.edtEditor_KeyPress
>
> END
>
> ...and rebuild the IDE - Make the executable, and replace /usr/bin/gambas
> by it.
>
> Sorry for the inconvenience,
>
> Regards,

it doesn't seem to work but this seems to work :

PUBLIC SUB lvwComp_KeyPress()

  DIM hEditor AS GambasEditor
  DIM hForm AS FEditor

  'IF Key.Code = Key.Escape THEN ME.Hide
  
  hEditor = GetEditor()
  hEditor.SetFocus
  hForm = GetEditor ()
  hForm.edtEditor_KeyPress

END

Regards,

-- 

Laurent Carlier




More information about the User mailing list