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 Tech Support » The debug version of Prof-UIs is slow Collapse All
Subject Author Date
Robert Hofstetter Sep 8, 2010 - 1:49 AM

Is there any way to speed it up?  or remove assertion code ?


Thanks

Technical Support Sep 8, 2010 - 4:52 AM

The assertions can be removed for grid related code at the beginning of the .../Include/ExtGridWnd.h file:

// #if (defined _DEBUG)
//          #define __EXT_DEBUG_HEAVY_CHECK_GENERIC_REGION_2D
// #endif // (defined _DEBUG)

           #define __EXT_DEBUG_GRID_ASSERT_VALID( __PTR__ )                                                        ;
           #define __EXT_DEBUG_GRID_ASSERT_KINDOF( __CTYPE__, __PTR__ )                     ;
           #define __EXT_DEBUG_GRID_ASSERT( __SOME_EXPR__ )                                                     ;
           #define __EXT_DEBUG_GRID_VERIFY( __SOME_EXPR__ )                                                      __SOME_EXPR__ ;

//          #define __EXT_DEBUG_GRID_ASSERT_VALID( __PTR__ )                                                        ASSERT_VALID( __PTR__ ) ;
//          #define __EXT_DEBUG_GRID_ASSERT_KINDOF( __CTYPE__, __PTR__ )                     ASSERT_KINDOF( __CTYPE__, __PTR__ ) ;
//          #define __EXT_DEBUG_GRID_ASSERT( __SOME_EXPR__ )                                                     ASSERT( __SOME_EXPR__ ) ;
//          #define __EXT_DEBUG_GRID_VERIFY( __SOME_EXPR__ )                                                      VERIFY( __SOME_EXPR__ ) ;
Second, the assertions can be removed for text rendering subsystem of Prof-UIS 2.90 at the beginning of the .../Include/ExtRichContent.h file:
   #define __EXT_DEBUG_RICH_CONTENT_ASSERT_VALID( __PTR__ )                                                    ;
            #define __EXT_DEBUG_RICH_CONTENT_ASSERT_KINDOF( __CTYPE__, __PTR__ )                 ;
            #define __EXT_DEBUG_RICH_CONTENT_ASSERT( __SOME_EXPR__ )                                                 ;
            #define __EXT_DEBUG_RICH_CONTENT_VERIFY( __SOME_EXPR__ )                                                  __SOME_EXPR__ ;

//          #define __EXT_DEBUG_RICH_CONTENT_ASSERT_VALID( __PTR__ )                                                    ASSERT_VALID( __PTR__ ) ;
//          #define __EXT_DEBUG_RICH_CONTENT_ASSERT_KINDOF( __CTYPE__, __PTR__ )                 ASSERT_KINDOF( __CTYPE__, __PTR__ ) ;
//          #define __EXT_DEBUG_RICH_CONTENT_ASSERT( __SOME_EXPR__ )                                                 ASSERT( __SOME_EXPR__ ) ;
//          #define __EXT_DEBUG_RICH_CONTENT_VERIFY( __SOME_EXPR__ )                                                  VERIFY( __SOME_EXPR__ ) ;
Third, you can debug the release version of your app and Prof-UIS.