![]() |
SkinManager - assertion during message pump. |
Post Reply ![]() |
Author | |
guiuser1 ![]() Groupie ![]() ![]() Joined: 17 November 2015 Status: Offline Points: 34 |
![]() ![]() ![]() ![]() ![]() Posted: 08 December 2015 at 3:53pm |
vs2013 on windows 7...v17 - beta3
We are using SkinManager and running into some issues... In particular, we have several threads that execute various processes. During the processing we have a PumpMessage loop that we've use for years (many years), without issues. With ToolKitpro however, and the hooks that the SkinManager attempts, we are seeing assertions from CXTPSkinManagerApiHook::CallHookDefWindowProc a process that is called byCXTPSkinManagerApiHook::OnHookDefWindowProcA Which is called by our PumpThreadMessageLoop() A code fragment from the pump loop follows (a typical function) while (::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { if (!pThread->PumpMessage()) { return FALSE; } } The assertion ONLY happens after we switch Skins via the LoadSKin()... It NEVER has an issue if the Native theme...(non-theme if you will) is called. LoadSkin("",""); ???? Confusing... |
|
![]() |
|
guiuser1 ![]() Groupie ![]() ![]() Joined: 17 November 2015 Status: Offline Points: 34 |
![]() ![]() ![]() ![]() ![]() |
FYI: just a hunch but this is either a underestimate of Worker Threads versus GUI threads...
Obviously worker threads have NO window handle....but obviously the message pump must continue.... |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |