Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPCommandBarAnimation::RedrawRect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPCommandBarAnimation::RedrawRect

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 977
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: CXTPCommandBarAnimation::RedrawRect
    Posted: 2 hours 27 minutes ago 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.
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.063 seconds.