OCAF open document

HI, All,

I have a problem about open document.

I've generated a OCAF project with the wizard, everything seems to be ok but when I try to open a saved document the application just hang at
"TPrsStd_AISViewer::New(aOcafDoc->Main(),myViewer)";
with information "07 MFC Application has encountered a problem and needs to close." and I have to kill the process.

I use open CASCADE 6.3.0 compiled with Visual Studio .NET 2005.

Does anybody know what is wrong ? Thanks in advance!

Roman Lygin's picture

Chris,

If this happens right on this line, chances are that your aOcafDoc is a null handle. Add, for instance, assert(!aOcafDoc.IsNull()) to check if this is the case.
Roman

---
opencascade.blogspot.com - the Open CASCADE blog

Wang Chris's picture

Hi, Roman

Thanks a lot. I solved this problem based on your help.

LI's picture

hi, Wang Chris

i came across the same problem, can you tell me how did you solve it?

thanks very much

LI's picture

hi, Wang Chris

i came across the same problem, can you tell me how did you solve it?

thanks very much