View Full Version : LoadFrame fails with VC12

09-30-2015, 05:57 AM
We were using stingray version 10.1 with Visual Studio 2005 (VC8) without any problems. We then decided to move to VC12 and have built stingray version 11.2 with Visual Studio 2013 (VC12).

After porting, upon calling SECMDIFrameWnd::LoadFrame, to create a window, the application crashes. Further debugging the issue,

Create(lpszClass, lpszTitle, dwDefaultStyle, rectDefault,
pParentWnd, lpszMenu, 0L, pContext)

is returning FALSE in swinmdi.cpp.

It looks like above "create" calls, mfc "create" in winfrm.cpp and this in turn calls "CreateWindowEX" which returns a NULL value for hWnd.

I used debug binaries and found following logs when the windows fails to get created

00000192 0.21984100 [3444] f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\wincore. cpp(748) : AppMsg - Warning: Window creation failed: GetLastError returns 0x00000000
00000193 0.21995421 [3444] f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\winfrm.c pp(626) : AppMsg - Warning: failed to create CFrameWnd.
00000194 0.22025047 [3444] f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\wincore. cpp(815) : AppMsg - Warning: calling DestroyWindow in CWnd::~CWnd; OnDestroy or PostNcDestroy in derived class will not be called.

Can someone help me with the issue