Initialization of the graphic library.

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?