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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.