[Gtk-sharp-list] GConf.client.AddNotify () problem
Philip Van Hoof
spamfrommailing@freax.org
Thu, 4 Sep 2003 10:34:30 +0200
If you Add multiple notifies to a Gconf.Client, to the same
eventhandler, you'll get a
Unhandled Exception: System.ArgumentException: Key duplication when
adding: GConf.NotifyEventHandler
For example:
GConf.Client gc = new Gconf.Client ();
gc.AddNotify("/system/proxy/mode", new
GConf.NotifyEventHandler(getProxyPref));
gc.AddNotify("/system/proxy/mode", new
GConf.NotifyEventHandler(getProxyPref));
I think that the problem will be that the method for getting an
unique-id in some internally used hashtable is by using the
GetKey()-method of object... I don't think that it should be by
definition a programming mistake if you let one method handle multiple
events.
--
Philip Van Hoof -- Software Developer at Cronos