Re: Errors getting bools and ints

Mark McLoughlin <[email protected]>
Newsgroups gmane.comp.gnome.lib.gconf
Message-ID <1115274028.3051.7.camel@blaa>
Hi,

On Thu, 2005-05-05 at 02:14 +0000, James Lee wrote:

> (java-gnome:15341): GConf-CRITICAL **: gconf_client_get_int: assertion
> `err ==
> NULL || *err == NULL' failed

	This assertion is triggered when gconf_client_get_int () gets passed a
GError which is non-NULL e.g.

{
  GError *error;
  int ret

  /* error = NULL; */ /* Oops, forgot to initialize it to NULL ? */
  ret = gconf_client_get_int (client, MY_KEY, &error);
}

> My app can get the string 'server' just fine.  And, strangely, my app
> can write
> to the ints and bools fine.
> 
> I am writing my program with Java-Gnome 2.10.1 (I had the problem with
> 2.8 too).
>  I asked about the errors on the Java-Gnome IRC channel, but they
> suggested that
> it was a native GConf problem, so I'm asking here.  What can cause
> those errors?

	It sounds like a Java-Gnome issue to me ...

Cheers,
Mark.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.