Empire Earth continued

Stefan Dösinger stefandoesinger at gmx.at
Thu Sep 8 15:37:56 CDT 2005

Am Donnerstag, 8. September 2005 22:03 schrieb Lionel Ulmer:
> On Thu, Sep 08, 2005 at 09:20:39PM +0200, Stefan Dösinger wrote:
> > Do you mean on Windows or on Wine? How can I get these members from an
> > external application? I thought that apps can't look inside a COM object,
> > as the structures used by the libs and the structures exported to the app
> > are different.
> Well, just do an 'AddRef' which returns the (now incremented) reference
> count and then a Release. If you print the returned value minus one, you
> will get the current reference count at the moment of the call.
I think you're right. After Releasing the DDraw object two times, as EE does, 
it's far from beeing freed: It has a refcount of 8!! In particular, creating 
the surface and performing QueryInterface on it increase the refcount by 1, 
creating a D3D device increases the refcount by 7.

I'll do more tests.


More information about the wine-devel mailing list