On Tue, Sep 05, 2000 at 11:24:34AM -0500, Andreas Mohr wrote:
> On Tue, Sep 05, 2000 at 05:42:03PM +0200, Ove Kaaven wrote:
> > Why do you ask here, it's easy to look up. The program is responsible for
> > deallocating the palette.
> OK, sorry.
> In the first place it's the program that is responsible.
> But what if it doesn't do that ?
> MSDN says:
> "When you no longer need the palette, call the DeleteObject function to delete
> it."
> So it says "call the", NOT "you have to call the".
> So Windows might indeed do some kind of garbage collecting here.
> 
> How to implement that in Wine, if we need that ?
> And it seems we need that, as I remember several cases with non-deleted
> palettes...
> (I think Netscape 3.x was the most obvious candidate for that)
Hmm, another MSDN page even says:
"When an application no longer needs a logical palette, it can delete it
by using the DeleteObject function."

See ?

So how to solve that "little" problem ?

Andreas Mohr

Reply via email to