Print Page | Close Window

SkinManager - assertion during message pump.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22814
Printed Date: 05 October 2024 at 5:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SkinManager - assertion during message pump.
Posted By: guiuser1
Subject: SkinManager - assertion during message pump.
Date 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...







Replies:
Posted By: guiuser1
Date 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....





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net