GnomePropertyBag
- From: Nat Friedman <nat helixcode com>
- To: Dave Camp <campd oit edu>
- Cc: gnome-components-list gnome org
- Subject: GnomePropertyBag
- Date: Tue, 11 Jan 2000 18:25:37 -0500 (EST)
Dave Camp writes:
>
> There is a fairly serious bug in GnomePropertyBag that prevents
> more than one property bag from working properly in a single
> server. The core of the problem is that one POA is used for all
> propertybags, but the ObjectIds used by this POA are not unique
> between bags.
Ok, this is a bug. We're supposed to create a new poa each time.
That is why there is code in there to generate a fresh POA name each
time (the g_strdup_printf).
> This causes a problem. When the new ServantManager is selected
> into the POA, the old one is discared, and all future requests
> handled by the POA will go through this servant manager. So the
> POA only recognizes the last created servant.
Right, right. This all stems from the problem that we are only
creating one poa.
> There are two solutions to this problem. One is to give each
> bag its own POA. This would be easy to implement, but perhaps
> not the best solution.
Why not?
> * The ObjectIds created by gnome_property_bag_create_objref()
> must be unique between all PropertyBags.
Too much of a pain. Let's just create one POA for each property
bag.
> Below is a patch which implements the second solution. I would
> appreciate feedback.
What are your objections exactly?
Nat
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]