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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / Unhadled Exception ....................

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
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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