Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

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

Unhadled Exception ....................
shmsh 2013/02/08 20:21
Hi

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.

// MY CODE IS

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
#include <gp_Dir.hxx>
#include <gp_Pnt.hxx>
#include <gp_Circ.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <AIS_Shape.hxx>
#include <TopoDS_Edge.hxx>
#include <AIS_InteractiveContext.hxx>

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

Regards
 
 
Latest news
  • OCCT Applications
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map