For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Initialization of the graphic library.

Vladimir Karpov's picture
Forums: 

I have a catch in this situation:

int C3DWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;

// TODO: Add your specialized creation code here
// Creating View
try
{
m_pGraphicDevice = new Graphic3d_WNTGraphicDevice();
}
catch(Standard_Failure)
{
AfxMessageBox("Fatal Error During Graphic Initialisation");
};

Have you any idea to help me?

Dmitry Kidyaev's picture

May be try to look Snadard_Failure object content?