Click here to Skip to main content
15,671,117 members
Please Sign up or sign in to vote.
5.00/5 (1 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" );
		return NULL;
Updated 19-May-20 4:28am
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

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

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900