0xC0000096: Privileged instruction. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

0xC0000096: Privileged instruction.

verifierverifier Posts: 1Member
Hello

I get the following error:
Unhandled exception at 0x0081ba9f in ACDSuper.exe: 0xC0000096: Privileged instruction.

in this function:
void CDatatalFleXiACDSupervisorDoc::AddGraph(DWORD StatisticTypeId, DWORD GraphType, DWORD SelectionId, DWORD TimeFrameType, DWORD RealTimeFrameSize, CDateTime fromTime, CDateTime toTime)
{
//Allocate

LPSTATISTICS_OBJECT lpObj = new STATISTICS_OBJECT;
if (lpObj)
{
CMainFrame* pMainFrame = (CMainFrame*)AfxGetMainWnd();
ASSERT_VALID(pMainFrame);

//Init
lpObj->dwId = ++m_iGraphSize;
lpObj->dwStatisticTypeId = StatisticTypeId;
lpObj->dwGraphType = GraphType;
lpObj->dwSelectionId = SelectionId;
lpObj->dwSelectionType = GRAPH_SELECTION_NONE;
lpObj->dwTimeFrameType = TimeFrameType;
lpObj->dwRealTimeFrameSize = RealTimeFrameSize;
lpObj->From = fromTime;
lpObj->To = toTime ;
lpObj->lpChartDlg = AddGraphDialog(lpObj->dwId, lpObj->dwGraphType);
lpObj->bVisible = TRUE;

//This is the where the error occur
m_ptrStatisticObjects.Add(lpObj);

pMainFrame->m_wndWorkSpace.AddStatistics(lpObj->dwId, StatisticTypeId, lpObj->bVisible);


UpdateAllViews(NULL);
}//lpobj
}

m_ptrStatisticObjects is a private member variabel of the type CPtrArray.

How do I fix it?


Sign In or Register to comment.