User (Legacy) Posted January 28, 2000 Report Share Posted January 28, 2000 I'm getting fatal errors when I read the chart title in and out of the chart object. Given the following (VC6) code fragement: // Begin CString _strGraphTitle; IChartFXPtr _pChartFX; _pChartFX.CreateInstance(__uuidof(ChartFX)); _pChartFX->PutTitle(CHART_TOPTIT, "First Title"); _strGraphTitle = _pChartFX->GetTitle(CHART_TOPTIT); ASSERT( _strGraphTitle == "First Title" ); _pChartFX->PutTitle(CHART_TOPTIT, "Second title"); // End Everything works fine until the second call to PutTitle(), which generates "Debug Error R6025 - pure virtual function call." I can make as many calls to PutTitle() before the GetTitle() as I want, but as soon as I make the first call to GetTitle(), my smartpointer seems to somehow be releasing the object, causing the next PutTitle() call to die. Can anyone explain this to me? Thx. Andrew Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.