For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Unhadled Exception ....................

shmsh's picture


I have MFC project in which I try run the following code below; the code was build with zero ERROR but on Debug command an UNHANDLED EXCEPTION error occurs.


gp_Dir dir(0,0,1);
gp_Pnt point(10,10,10);
gp_Circ circle(gp_Ax2( point, dir),50);
BRepBuilderAPI_MakeEdge makeEdge(circle);
Handle (AIS_Shape) shape = new AIS_Shape(TopoDS_Edge());
shape ->Set(makeEdge.Edge());
Handle(AIS_InteractiveContext) myAISContext;
myAISContext->Display(shape , 1);

// and includes header files are

the error is \" Unhandled exception at 0x01819b68 (TKV3d.dll) in CIRCLE.exe: 0xC0000005: Access violation reading location 0xfefd0088 \" and that points toward last line of the code which is :
myAISContext->Display(shape , 1);

anyone can help in this resolving this issue???
that would be appreciated ..
Thanks in advance