gordonc@aifh.ed.ac.uk (Gordon Cameron (RA DAI)) (05/28/91)
I would greatly appreciate it if somebody could help with this problem, as it has caused much grief ! I have a base application which in turn executes (in turn) a number of Xview applications. Each of these applications uses its own (statically allocated) palette, and it is here that the problem arises... The palettes used by the sub-tools are fairly large, but since no two of the subtools can be in use at the same time - this is OK. However, when I finish using one tool, and wish to move on to the next, I want the server to 'forget' about the colourmap, that it allocated for the tool that I just destroyed, and allocate the NEW colurmap for the NEW tool, as if it were the first application. (What happens just now, is that the first sub-tool to execute, 'steals' the colourmap for itself, and all subsequent tools to run cause the server to swap colours in and out, causing a bad flicker) When the top-level driving application exits, everything reverts to normal... Can anybody help !! - I suspect that the problem occurs becuase the main application registers as ONE client - I'm not sure.. Any help would be gratefully received, Gordon Cameron, Dept. of A.I., University of Edinburgh, Edinburgh, Scotland. e-mail : gordonc@uk.ac.ed.aifh