[Gambas-user] Segmentation Fault example

nando nando_f at ...951...
Fri May 6 15:31:41 CEST 2005


I get a segmentation fault with the following...

...
PUBLIC s1 AS STRING
PUBLIC s2 AS STRING
PUBLIC c  AS INTEGER
...


s1 = "/home/"
s2 = "a_folder"

IF EXIST ( s1 & s2 ) THEN c = color.rgb(0, 255.0)

...

Conditions:
(1) The folder must exist for the THEN to execute
(2) The rgb parameters are ZERO COMMA SPACE TWO FIVE FIVE PERIOD ZERO
    and is deliberately syntax incorrect.

I found this only because I was sleepy and hit the period and not comma.

-Fernando




More information about the User mailing list