Re: [Mingw-w64-public] Cannot access inherited pointer

2013-04-29 Thread Pavel
OK, so the problem was that the derived class was compiled with #pragma pack(1), while the base class without it. Thanks anyway, Pavel On Mon, 2013-04-29 at 12:04 +0200, Pavel wrote: > Hi team, > > I have the following situation > > class CBase > { > protected: > ULONG m_lRefCount; > IMallo

[Mingw-w64-public] Cannot access inherited pointer

2013-04-29 Thread Pavel
Hi team, I have the following situation class CBase { protected: ULONG m_lRefCount; IMalloc *m_pMalloc; public: CBase(IMalloc *pMalloc); ... class CDerived : public CBase { public CDerived(IMalloc *pMalloc, int iSomeOtherParam); ... CBase::CBase(IMalloc *pMalloc) { m_pMalloc = pMalloc;