[Gambas-user] Re: Segmentation fault / Classes

Benoit Minisini gambas at ...1...
Wed Nov 23 23:07:28 CET 2005


On Wednesday 23 November 2005 14:43, Daniel Campos wrote:
> More about that (gambas 1.91.21a):
>
> The "Class" methods seem to be broken. I get a segmentation fault when
> using any class from gb.qt, it seems to work with gb.gtk, but returns
> the name of the symbol with the signature (for example "pText"
> ), and If I use it with a class written in the same Gambas program, it
> just returns one character strings like "p", "v"...
>
> Regards,
>
> D. Campos
>
> 2005/11/23, Daniel Campos <dcamposf at ...626...>:
> > Hi:
> >
> > I think this code should work. However I get a segfault each time I
> > try to execute it:
> >
> > PUBLIC SUB Button1_Click()
> >
> >   DIM hClass AS Class
> >   DIM aString AS String
> >
> >   hClass = Classes["Button"]
> >
> >
> >   FOR EACH aString IN hClass.Symbols
> >
> >     PRINT aString
> >
> >   NEXT
> >
> > END
> >
> > (With Gambas-2 1.9.21)
> >
> > Regards,
> >
> > D. Campos

This should fix the problem...

-- 
Benoit Minisini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbx_c_class.c
Type: text/x-csrc
Size: 17127 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20051123/dc6f2a67/attachment.c>


More information about the User mailing list