|| | |||Browse by category|
Problem with constructors being called before GXInit()
There is a problem if the CGXGridParam constructor is called and the GXInit() method has not been called. This can happen if you embed a grid window into a dialog-only app. The dialog class is constructed before the InitInstance() method is called.
We added the following ASSERT in the CGXGridParam, CGXGridCore, and CGXProperties constructors along with a suggestion of how to work around the problem.
|CGXGridCore::CGXGridCore(CWnd* pGridWnd, CDocument* pGridDoc, BOOL bIsViewContext)
|m_pAppData = GXGetAppData();