Author |
Topic  |
|
simonong
1 Posts |
Posted - 21 Nov 2006 : 01:46:48
|
Hi,
We modified GCL Dialog sample to RT Dialog application.
No error when we build the application, but we got error message "error building a graph - access violation at 401222".
Please advice us.
Thank you.
And below our code.
void CGraph::BuildGraph() { realtype rSampleInt, rBarWidth; int nDir; int nLineColor[1]; int nSweepColor; int nLineStyle[1]; int nLineWidth[1];
rSampleInt = 0.10; nDir = OR_HORZ; rBarWidth = rSampleInt / 3.0 * 2.0;
nLineColor[0]=C_GREEN; nLineStyle[0]=PS_SOLID; nLineWidth[0]= 2; nSweepColor = C_BLACK;
WRSetLEDControl(0.1, 0.6, 0.04,WGGetRGBColor(C_LIGHTGRAY),1, 2); //ok
// CSpEaaApp *pDoc = (CSpEaaApp *) GetDocument(); // ASSERT(pDoc) ; // QCDynData *pDataSet = pDoc->GetDataSet ();
// pDataSet->WRGetNumChans();
/* WRSetSweepGraph(pDataSet, 0.02, nDir, nLineColor, nSweepColor, NO_STEP, nLineStyle, nLineWidth); */
WRSetSweepGraph(theApp.pDataSet, 0.02, nDir, nLineColor, nSweepColor, NO_STEP, nLineStyle, nLineWidth); }
|
|
quinncurtis
1164 Posts |
Posted - 21 Nov 2006 : 08:31:00
|
Help us out. When you trace through the BuildGraph method, where does the error occur? |
 |
|
|
Topic  |
|
|
|