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 » CExtGridWnd, CExtGridCellFontFaceName Scrollbar crash in a thread Collapse All
Subject Author Date
Mediatime Conseil Apr 6, 2010 - 8:57 AM

Hi,

I create a dialog that contain a grid that contain a FontFaceName Combo box.

When I call my dialog in the main thread, all is working correctly.

But when I call my dialog.domodal() from a thread, the dialog displays correctly, the fonts are well displayed and the combo scrolls well when I use the mouse wheel. but the application crashes when I try to clic on the scrollbar of the CExtGridCellFontFaceName control?

it crashes at the line 1706 in the ExtScrollWnd.cpp
bool bAnimationLocked = AnimationClient_CacheGeneratorIsLocked();

and the "this" pointer said that hwnd is not good 0xfeeefeee?

Thank you

Mediatime Conseil Apr 7, 2010 - 1:36 AM

Hi,

It’s not a multi threading problem, I am not accessing controls from thread, I have a thread that run a dialog.

I made some debugging, the problem occurs in the ExtScrollwnd.cpp

Line 1703 : if( ! m_bPopupInactiveLightMode )
Line 1704 :         ActivateTopParent();

before the call to ActivateTopParent, the m_hWnd of the scrollbar is OK, and after the m_hWnd is no more good.

It seems that the ActivateTopParent is modifiying this hwnd.

This happens because the main application is not the parent of my dialog ...

Any Idea?

Thank you

Technical Support Apr 7, 2010 - 2:15 PM

Please use Prof-UIS classes implementing any UI controls within the main UI thread only. We mean buttons, grids, control bars, combo boxes, dialogs, property sheets and everything else.

Technical Support Apr 6, 2010 - 11:46 AM

Prof-UIS classes which implement UI controls are not multithreaded. There is a global paint manager component that paints themed UI elements for all Prof-UIS controls. The paint manager caches GDI objects. The GDI system is not multithreaded. As a result, the Prof-UIS library is not multithreaded either.