Professional UI Solutions
Site Map   /  Register


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 » Why will application become slow? Collapse All
Subject Author Date
tera tera Nov 25, 2009 - 12:48 AM


It is a former question.

When I use System proportional font in large quantities.

Why will application become slow?

>If you allocate 10000 GDI handles, Windows will start using the "System" proportional font everywhere. So, you should not allocated 10000 GDI handles.

>Approximately the same we can say about allocating 300 tab pages. Besides, keeping 300 items in the single line tab control is not a a user friendly design.

>This design should be replaced with something else. For instance, you can use a list box inside tab control and created only one page window which corresponds to the selected list box item.

tera tera Nov 26, 2009 - 5:24 PM


I examine problems of the GDI.

By using a lot of handles.

Because the OS transmits Windows message to the handle.

Will application become slow?

Technical Support Nov 27, 2009 - 1:26 PM

The lesser GDI / HWND handles, the faster the app. 300 dialog pages in a tab page container is not good. It’s really not good. You need to use an approach like this:

tera tera Nov 27, 2009 - 6:04 PM

Thank you for an answer

tera tera Nov 25, 2009 - 5:45 PM

Please answer it

Technical Support Nov 26, 2009 - 2:06 AM

Sorry for this delay. The type of the font is not important. It can use be variable or fixed width characters. The counts of GDI and other handles is the critical question. Prof-UIS minimizes the count of GDI handles. It caches only a few font and brush GDI handles. Bitmap handles are mostly never allocated because the CExtBitmap class is handle-less. Did you check the count of handles allocated by your application at run-time?