[Gambas-devel] Bug : QT component
Benoit Minisini
gambas at ...1...
Thu Jun 3 23:14:02 CEST 2004
On Thursday 03 June 2004 18:40, Daniel Campos wrote:
> Hi Benoit:
>
>
> I was testing menus with GTK+, and I was looking how QT works
> when executing menu.Delete.
>
> Look the example I send:
>
> 1) I start the button and press 'Detruir' -> OK, error message 'NULL
> object'
>
> 2) i start the button 'Crear' --> Menu and submenus created. Then I
> press one time 'Destruir' --> OK, menu destroyed --> Then I press
> four or five times 'Destruir' again --> Segmentation fault
>
There is a bug in the menu delete process. I think it does not free all it
should free. For example, if you add "P = NULL" after "P.Delete", everything
works correctly. I will try to fix it - the CMenu.cpp code is very
complicated!
>
> By other side, If I perform a loop For Each X in Form.Children, Menus
> are not reflected as form children. Is this normal?
Yes, menus are in Form.Menus.
>
> Regards,
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the Devel
mailing list