Debug Assertion Failed!
-
Hi all, I am trying to run my application.It is building successfuly. But i am getting run time error as...
Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp
please can anyone tell me,what may be the problem. Thanks Raj
-
Hi all, I am trying to run my application.It is building successfuly. But i am getting run time error as...
Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp
please can anyone tell me,what may be the problem. Thanks Raj
There might be N reasons for the assertion, some are mentioned below: 1. You might be accessing an out of bound array element 2. Your application is showing a message box due to the ASSERT statement 3. Your code is trying to access an uninitialized memory/pointer Why don't you debug your application and figure this out?
I am a HUMAN. I have that keyword (??? too much) in my name........ ;-)_AnsHUMAN_b>
-
There might be N reasons for the assertion, some are mentioned below: 1. You might be accessing an out of bound array element 2. Your application is showing a message box due to the ASSERT statement 3. Your code is trying to access an uninitialized memory/pointer Why don't you debug your application and figure this out?
I am a HUMAN. I have that keyword (??? too much) in my name........ ;-)_AnsHUMAN_b>
Hi sir, Thanks for your reply.Its working fine is some system. I am trying with a fresh system(installed Windows XP and VS 2005),there i am getting this error.
BOOL CTestApp::::InitInstance()
{if (!ProcessShellCommand(cmdInfo)) // here it is giving error return FALSE;
}
Thanks Raj
modified on Monday, December 27, 2010 2:59 AM
-
Hi sir, Thanks for your reply.Its working fine is some system. I am trying with a fresh system(installed Windows XP and VS 2005),there i am getting this error.
BOOL CTestApp::::InitInstance()
{if (!ProcessShellCommand(cmdInfo)) // here it is giving error return FALSE;
}
Thanks Raj
modified on Monday, December 27, 2010 2:59 AM
What are the contents of cmdInfo variable? Is this initialized?
I am a HUMAN. I have that keyword (??? too much) in my name........ ;-)_AnsHUMAN_b>
-
What are the contents of cmdInfo variable? Is this initialized?
I am a HUMAN. I have that keyword (??? too much) in my name........ ;-)_AnsHUMAN_b>
HI sir, Yes it is initilized. here it is..
BOOL CTestApp::::InitInstance()
{// Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line. Will return FALSE if // app was launched with /RegServer, /Register, /Unregserver or /Unregister. if (!ProcessShellCommand(cmdInfo)) return FALSE;
}
Thanks Raj
-
Hi all, I am trying to run my application.It is building successfuly. But i am getting run time error as...
Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp
please can anyone tell me,what may be the problem. Thanks Raj
-
Take a look at this article[^]
Wout Louwers
HI, when i am trying to debug it,its going into
"occount.cpp file"
COleControlSiteOrWnd *pTemp =
new COleControlSiteOrWnd(
hwndCtrl,
pOccDlgInfo->m_pItemInfo[i].bAutoRadioButton);
ASSERT(IsWindow(pTemp->m_hWnd));//the breakpoint is coming hereThe occcount.cpp path is in "C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc". I am not getting how to cum out of this problem. Please someone help me. Thanks Raj
-
Hi all, I am trying to run my application.It is building successfuly. But i am getting run time error as...
Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp
please can anyone tell me,what may be the problem. Thanks Raj
Hi, you should be less header files