Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - SkinManager - assertion during message pump.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SkinManager - assertion during message pump.

 Post Reply Post Reply
Author
Message
guiuser1 View Drop Down
Groupie
Groupie
Avatar

Joined: 17 November 2015
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote guiuser1 Quote  Post ReplyReply Direct Link To This Post Topic: SkinManager - assertion during message pump.
    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...




Back to Top
guiuser1 View Drop Down
Groupie
Groupie
Avatar

Joined: 17 November 2015
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote guiuser1 Quote  Post ReplyReply Direct Link To This Post Posted: 09 December 2015 at 10:12am
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....


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.422 seconds.