[Gambas-user] emulated empty settings collection get a crash when write it

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Jul 4 22:28:31 CEST 2018


Please show the code, which gives that error (it's error, not crash?).


Jussi

On Wed, Jul 4, 2018 at 10:13 PM, PICCORO McKAY Lenz <mckaygerhard at gmail.com>
wrote:

> In the past I was told to emulate the "null" and I did it based on the
>  json class, but now I have the following problem
>
> I have my own Settings class but when I try to write, I get an error
> and a crash because some keys instead of getting the string I get a
> reference (as emulated in the json class)
>
> Of course the settings clas at write does not xpect to have any null
> key value, so that's the problem
>
> how can overrite the process to do not get a crash?
> or how to write those null keys into a empty string?
>
> i got at console that poutput:
>
> gb.settings: warning: unable to save settings:
> /home/general/Devel/gambasex/excore/exdatabase.conf: Settings.Save.204
> Unable to save settings: Settings.WriteValue.563 Type mismatch: wanted
> Object, got Pointer instead
>
> that due emulated null value based on json class of gambas
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180704/b3b879e1/attachment-0001.html>


More information about the User mailing list