On Mon, Sep 19, 2005 at 09:27:05AM +0200, Stefan D?singer wrote:
Hi,
Why do you increase the refcount by 2? Since you add and release them in the same functions, it is not really necessary and just adds complexity to the code.
Well, Windows does so for some reason, and after what I've seen with Empire Earth, I suspect that there are some apps out there which depend on things like this. It's unlikely, but I would not be surprised if that happens.
In that case, it would be really beneficial with a unit test. Both as documentation and to see what Windows does.