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 Member Posts: 1
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?


Comments

  • Chris BrownChris Brown USAMember Posts: 4,593 ✭✭

    _ | http://forcoder.org | free ebooks and video tutorials about < R MATLAB Python Visual Basic .NET Objective-C Ruby Go C# Delphi Visual Basic Scratch C++ Perl C PL/SQL JavaScript PHP Assembly Swift Java F# ABAP VBScript Julia Scheme COBOL Apex LabVIEW Scala Ada Transact-SQL Bash Fortran Dart ML Lua Logo SAS Hack Clojure Crystal D Erlang FoxPro Kotlin Prolog Lisp Alice Awk Rust /> ___

Sign In or Register to comment.