[Gambas-user] Application.Env

Benoit Minisini gambas at ...1...
Fri May 21 19:54:08 CEST 2004


On Friday 21 May 2004 16:25, Mark Dootson wrote:
> Hi, I'm new to the list but can't find any mention of the following.
> Is anyone else setting any environment variables?
> Maybe I missed something on the list but the _put method of .ApplicationEnv
> calls app_env_get instead of app_env_put? So the environment accessed by
> Application.Env is effectively read only.
>
> I'm not a C programmer so  I don't know how to post a proper patch - but
> changing gbx_c_application.c    ......
>
> PUBLIC GB_DESC NATIVE_AppEnv[] =
> .............
>
> .............
>   GB_METHOD("_put", NULL, app_env_get, "(Value)s(Key)s"),
>
> to
>
>  GB_METHOD("_put", NULL, app_env_put, "(Value)s(Key)s"),
>
>
>  did the trick for me.
>
> Thanks for a brilliant application.
>
> Mark

Oh my god! You are right, I made an awful thoughtless blunder ;-)
I will fix it in the next version.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list