Click here to Skip to main content
14,667,121 members
Rate this:
Please Sign up or sign in to vote.
See more:
when I debug this if() statement I get abort box..


What I have tried:

if ( m_wndSplitter.CreateView(nRow, nCol, n_pViewClass, CSize(0, 0), &context) == FALSE )
	{
        TRACE( "Failed to Create View\n" );
		ASSERT(0);
		return NULL;
	}
Posted
Updated 19-May-20 4:28am
Comments
Richard MacCutchan 13-Nov-18 3:55am
   
Most likely because something is wrong. But without more information it is anyone's guess. Have you checked that all variables in the statement contain valid values?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You need to remove the Assert(0) line and it won't abort the execution.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100