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 » Second Chance Assertion Failed: File \Users\Sergey\sWork\Prof-UIS\Src\ExtPaintManager.cpp, Line 2629 Collapse All
Subject Author Date
fox lht Apr 7, 2006 - 7:55 PM

how to deal with this?

fox lht Apr 16, 2006 - 7:58 PM

Thank you!
I will try version 2.53.

fox lht Apr 13, 2006 - 11:47 PM

I am sorry! The version is 2.5.0.0 trial

Technical Support Apr 14, 2006 - 9:50 AM

This is assertion in the CExtPaintManager::stat_HBITMAPtoHICON() static method which receives a bitmap handle, a rectangle that describes part of the bitmap and a color value for transparent pixels and returns the newly created icon handle which is extracted from the specified part of bitmap (or entire bitmap) using the specified transparent color. The assertion failure occurred because the Win32 image list failed to extract an icon handle from itself. The CExtPaintManager::stat_HBITMAPtoHICON() method in Prof-UIS 2.52 or earlier was often used during loading toolbars. If you send us your toolbar image which causes this assertion, we will clarify the problem. This assertion failure will not happen in Prof-UIS 2.53 because we have completely recoded the icon support and it is no longer based on icon handles. We recommend you use version 2.53.

fox lht Apr 12, 2006 - 6:37 PM

First: The file is ExtPaintManager.cpp but not is ExtCmdManager.
Second: I question relates Prof_UIS 2.53 trial.
Please tell me the reason!

Technical Support Apr 13, 2006 - 7:58 AM

There are no assertion failure at this line in Prof-UIS 2.53. Please let us know which version you are using?

Technical Support Apr 9, 2006 - 8:35 AM

We may assume your question relates to Prof-UIS 2.53 Freeware. When you encounter the ASSERT at line 2629 of the ExtCmdManager.cpp file

// rename profile
bool CExtCmdManager::ProfileRename(
    __EXT_MFC_SAFE_LPCTSTR sProfileNameOld,
    __EXT_MFC_SAFE_LPCTSTR sProfileNameNew
    )
{
    if(    sProfileNameOld == NULL
        || sProfileNameNew == NULL
        || _tcslen( sProfileNameOld ) == 0
        || _tcslen( sProfileNameNew ) == 0
        || _tcscmp( sProfileNameOld, __EXTMFC_DEF_PROFILE_NAME ) == 0
        || _tcscmp( sProfileNameNew, __EXTMFC_DEF_PROFILE_NAME ) == 0
        )
    {
        ASSERT( FALSE ); // LINE 2629 WHERE YOU ENCOUNTERED ASSERT
        return false;
    }
that means you invoked the CExtCmdManager::ProfileRename() method with invalid parameters. One or both of the string pointer parameters are equal to NULL, have a zero length or some of string pointers specify the __EXTMFC_DEF_PROFILE_NAME command profile name which is not enabled for renaming. All these three conditions are not acceptable for CExtCmdManager::ProfileRename().

Please provide us with more details about your project or send us a test project so we can help you.