title: access violation (c system exception code : c0000005 ) while accessing ccomptr pointer and application got crash
body: <p>While accessing a computer I get an access violation error.
  The error is not consistent and only reproducible while trying to access a huge data.
  I have 2900 components and for each component I am calling a function. In this function I am accessing a ccompter, while doing this application gets crashed at random position like on 200, 210, 2500 etc. The position in not fixed when it crashes.</p>
  
  <p>This issue is specific to the system with following configuration:
  Window Server 2003 R2
  Xeon CPU , 2.66 ghz
  2 GB of RAM</p>
  
  <p>here is my code</p>
  
  <pre><code>XGGraphicAttribute* pAttr = pExtraGraphicInfo-&gt;GetAttribute();
  if(pAttr)
  {
      DBAttributes* db_attributes = NULL;
  
      db_attributes = static_cast&lt;DBAttributes*&gt; (pAttr-&gt;GetDBAttributes());
  
      CComPtr&lt;IEPGraphicData&gt; pIEPGraphicData;
  
      if(db_attributes)
      {
          pIEPGraphicData = db_attributes-&gt;GetGraphicData(); // here my app got crashed 
      }
  
  }
  
  
  IEPGraphicData* DBAttributes::GetGraphicData () const
  {
      return m_pIEPGraphicData;
  }
  </code></pre>