Re: Problem with ITypeInfo

2004-08-08 Thread Jacek Caban
Dmitry Timoshkov wrote: "Jacek Caban" <[EMAIL PROTECTED]> wrote: No, I don't. In my case I need only this: /* this is where we are coming from */ +ITypeLib2_AddRef((ITypeLib*)pLibInfo); ptiRet->pTypeLib = pLibInfo; ptiRet->index=count; but I call ITypeLib_Release in ITypeInfo_Release

Re: Problem with ITypeInfo

2004-08-08 Thread Dmitry Timoshkov
"Jacek Caban" <[EMAIL PROTECTED]> wrote: > No, I don't. In my case I need only this: > > /* this is where we are coming from */ > +ITypeLib2_AddRef((ITypeLib*)pLibInfo); > ptiRet->pTypeLib = pLibInfo; > ptiRet->index=count; > > but I call ITypeLib_Release in ITypeInfo_Release so I

Re: Problem with ITypeInfo

2004-08-08 Thread Jacek Caban
Dmitry Timoshkov wrote: "jack" <[EMAIL PROTECTED]> wrote: @@ -3265,6 +3266,7 @@ return NULL; } *ppTypeInfoImpl = (ITypeInfoImpl*)ITypeInfo_Constructor(); + pTypeLibImpl->ref++; Are you sure you need this piece of the patch? It causes the following test program to fail:

Re: Problem with ITypeInfo

2004-08-07 Thread Dmitry Timoshkov
"jack" <[EMAIL PROTECTED]> wrote: > @@ -3265,6 +3266,7 @@ > return NULL; >} >*ppTypeInfoImpl = (ITypeInfoImpl*)ITypeInfo_Constructor(); > + pTypeLibImpl->ref++; Are you sure you need this piece of the patch? It causes the following test program to fail: #define COBJMACROS

Problem with ITypeInfo

2004-08-06 Thread jack
Hi. I've tryed to run game Project Entropia and I got segmentation fault because of a bug in OLE. I've hacked code and I found two bugs: 1. ITypeInfo has back pointer to ITypeLib, but it's possible (and happened) that ITypeLib is destroyed and later ITypeInfo calls its function. I've solve this