STEP READER......

Hi all,

I get an access violation on the last line of that source code :

STEPCAFControl_Reader _reader;
_reader.ReadFile ((Standard_CString)filename.c_str());
Handle(TDocStd_Document) Doc;
_reader.Transfer ( Doc ) ;

What's wrong ?

Ajesh kumar's picture

You need to instantiate the object Doc .
new TDocStd_Document("...")

HTH
Ajesh