
Mon, 03/09/2009 - 12:41
Forums:
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!
Wed, 03/11/2009 - 00:10
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
Wed, 03/11/2009 - 06:44
Hi, Roman
Thanks a lot. I solved this problem based on your help.
Sun, 01/31/2010 - 10:01
hi, Wang Chris
i came across the same problem, can you tell me how did you solve it?
thanks very much
Sun, 01/31/2010 - 10:02
hi, Wang Chris
i came across the same problem, can you tell me how did you solve it?
thanks very much