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;
}

CDerived::CDerived(IMalloc *pMalloc, int iSomeOtherParam) :
CBase(pMalloc)
{
  ...

now, whenever I try to access the m_pMalloc member from CDerived, it
crashes, however, accessing m_lRefCount is fine. Accessing m_pMalloc
from CBase is OK. Moreover, this only happens with 64bit version, 32bit
version works all fine.

I am using Ruben's personal build, win64 compiler for both 32bit and
64bit target. I have tested gcc 4.6.3-2 and 4.8.0 - both behave the same
way.

Any idea?

Thanks, Pavel



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to