|
-
April 30th, 1999, 09:20 AM
#1
ASSERT failure when starting application
Hi,
When I launch my (DEBUG mode) executable, I get a debug assertion failure. It transpires that the problem is inside WinMain.cpp's AfxWinMain() function. In particular, the problem is with the ASSERT_VALID below :
CWinApp* pApp = AfxGetApp();
// AFX internal initialization
if (!AfxWinInit(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
goto InitFailure;
// App global initializations (rare)
ASSERT_VALID(pApp);
if (!pApp->InitApplication())
goto InitFailure;
I have createed my global application object. So why this error ? (If I launch my application in non-DEBUG mode it operates fine.)
Brendan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|