Print Page | Close Window

CXTPCommandBarsFrameHook crash

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=24627
Printed Date: 19 February 2026 at 8:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPCommandBarsFrameHook crash
Posted By: rdhd
Subject: CXTPCommandBarsFrameHook crash
Date Posted: 18 February 2026 at 2:18pm
During shutdown we have experienced crashes in CXTPCommandBarsFrameHook code. The call to GetFramePaintManager has returned a null pointer. In particular, as we shut down the hook's RedrawFrame has been called and the GetFramePaintManager()->DrawFrame line crashed due to the null pointer.

I see that CXTPCommandBarsFrameHook::GetFramePaintManager() can return NULL as can the call to pPaintManager->GetFramePaintManager if it is called.

I also see that many of the calls to GetFramePaintManager in XTPFrameHook.cpp test the returned pointer. Only a few do not and I'm modifying those to do so.

Would be great if a CJ update did the same so I don't have to maintain this change.

Not sure how we get into this as it isn't happening a lot. We do use skinning depending on a user setting for a color theme choice but I run with the skin a lot and haven't crashed. So this change I'm making is a hope so. As in I hope it avoids the crash.



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