[Gambas-user] Bug report

Benoit Minisini gambas at ...1...
Mon Jun 23 19:44:30 CEST 2008


On lundi 23 juin 2008, Ron wrote:
> Hi,
>
> This will raise a signal 11 and produce a coredump
>
> PUBLIC SUB Form_Open()
>
>   DIM b[2] AS Byte
>
>   b[0] = &H1
>   b[1] = &H2
>
>   txtBox.Text = Str$(b)
>
> END
>
> I know the Str$ is complete bogus, but to dump core on that...
>
> Gambas 2.7.0
> Debian 4.0
>
> Regards,
> Ron.
>

I admit that static array are bogus: Str$(b) syntactically means nothing, and 
you should get an error instead of a crash.

As for Str$() by itself, I don't think it so bogus. I suggest you read 
carefully the documentation of the function.

Regards,

-- 
Benoit Minisini




More information about the User mailing list