User (Legacy) Posted June 2, 2005 Report Share Posted June 2, 2005 Hello, I'm having a problem trying to clear data from a RealTime style chart. If the chart has some data points and I do a m_pChartFX->ClearData(), then on the next data point entry ( which would now be the first data point), I get a COM error 0x80004005 (Unspecified Error). I got the same error to occur in your sample code by changing the method OnAcquireData in the CCfxRealTime class from: if (IsDlgButtonChecked(IDC_ACQUIREDATA)) SetTimer(1,100,NULL); // A 10th of a second else KillTimer(1); to if (IsDlgButtonChecked(IDC_ACQUIREDATA)) SetTimer(1,100,NULL); // A 10th of a second else { KillTimer(1); m_pChartFX1->ClearData(CD_VALUES); m_pChartFX2->ClearData(CD_VALUES); } Now if the Data Acquistion checkbox is selected a second time to start the data again, the COM error occurs. Is there any special things I need to do to clear a realtime chart? BTW: I'm using the ChartFX Active X control version 5.0.14.4 Thanks, Chris Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.