Print Page | Close Window

CXTPCommandBarAnimation::RedrawRect

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=24645
Printed Date: 08 June 2026 at 8:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPCommandBarAnimation::RedrawRect
Posted By: rdhd
Subject: CXTPCommandBarAnimation::RedrawRect
Date Posted: 08 June 2026 at 4:24pm
Looking at dump files where we crash in AlphaBlendU with a non-null pointer access violation, Claude Code has pointed to CXTPCommandBarAnimation::RedrawRect where lpRect == NULL.

CC thinks RemoveAnimations needs to be called there. I have verified debugging that if I have collapsed groups and click and move over etc. that function is called with a NULL lpRect. It is also called when we programmatically set the popup of a collapsed group with a "find command" tool we have. It is also called when clicking a button on the ribbon.

But still, I never crash. This is "random" in our code base. Can a CJ expert confirm or deny this change is needed:

void CXTPCommandBarAnimation::RedrawRect(LPCRECT lpRect, BOOL bAnimate)
{
    if (lpRect == NULL)
    {
        m_bmpCache.DeleteObject();
        RemoveAnimations();
    }

So far in testing I find nothing bad happening. So, I got that going for me.



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