Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 rtdialog
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

simonong

1 Posts

Posted - 21 Nov 2006 :  01:46:48  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
Help us out. When you trace through the BuildGraph method, where does the error occur?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07