[Gambas-user] Settings problem (crash)

Bruce Steers bsteers4 at gmail.com
Tue Oct 4 11:58:41 CEST 2022

You have a spacer in your menu and it's name is "Settings"

It is causing a conflict, rename the spacer to something else.


On Mon, 3 Oct 2022 at 14:24, wig <wig at noxqs.org> wrote:

> In a big project, when retrieving settings, I started to have the error
> message:
> "Not an array (23)"
> in FMain 2288:
>   Settings["Report/TitlesOn"] = mniReportTitles.Checked
> I checked the syntax again and again, but had it on all instances of use
> of settings from then on, in FMain.  Not in my FAbout.
> The project used several libraries, settings for database access, menu
> state etc, so it took me about a week to trim out all non-relevant
> possibilities.
> Now I have the demonstration of the problem in this small project, where I
> just save and retrieve a counter in the settings:
> SettingsProblem-0.0.1.tar.gz.
> The program crashes on it except when I use Try in front of the settings
> line.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221004/8c45fb56/attachment.htm>

More information about the User mailing list