<< snip >>
of course even if CreateSurface doesn't addref the publically visible refcount, it could still hold some internal reference to prevent the ddraw object from beeing destroyed. If that's the case, we need an additional test showing that the ddraw object survives even though it has ref 0
So what you're saying I should not use the public visible refcount and add a internal AddRef/Release so surfaces can keep ddraw alive this way.
Stefan can I use the numIfaces variable instead, it seems like an internal refcount for the directdraw interfaces and since directdrawsurface is a interface it would make sense or should I make yet another ref counter.
/Jens