Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Bug in CExtComboBoxBase::FindItemExact Collapse All
Subject Author Date
Hans Mayer Jun 30, 2007 - 7:26 AM

Hello Support-Team!

I want to use the CExtComboBoxBase::FindItemExact function, but I get always a Assert message. And i think there is a small bug at the beginning.

if(        (!(nIndexStart < 0 || nIndexStart >= nCount))
    &&    nIndexStart != -1
    )
{
    ASSERT( FALSE );
    return CB_ERR;
}

With nIndexStart = -1 everthing works well, but if nIndex >= 0 and <= nCount this throw a Assert message.

Why so complicate? This would help:

if(        (nIndexStart < -1) || (nIndexStart >= nCount)        )
{
    ASSERT( FALSE );
    return CB_ERR;
}

Best Regards

Technical Support Jul 2, 2007 - 9:07 AM

Thank you for reporting the bug. You are absolutely right. We have just fixed it.