Hi Everybody,

This is a problem that Eric Christianson and I were discussing, and I came
up with a few solutions, but I thought the rest of this list might want to
have a say in it (And this sounds like the kind of problem Yann might like ;)

When a theme is loaded or unloaded, pgserver has code to handle redoing
theme lookups where necessary. Apps however don't have a chance to do this.
Therefore, any handles the app has that were owned by the removed theme
become invalid.

The most obvious solution to this is to have pgserver send an event to all
apps when a theme is loaded or unloaded. This would be necessary for
non-handle properties looked up from themes.

Another option that may be implemented concurrently with the event solution
is to create a new type of handle that specifies a theme object and
property. This handle, when dereferenced, would automatically do a theme
lookup and additional dereference. It would effectively be a pointer to a
theme property with a pointer to a pointer :)

Anyway, this new type of handle would be less efficient per-use but more
efficient per theme reload. It would never become out of date with respect
to the loaded themes.

-- 
Only you can prevent creeping featurism!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to