Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Problem on XTPCommandBarAnimation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem on XTPCommandBarAnimation

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

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Topic: Problem on XTPCommandBarAnimation
    Posted: 27 February 2007 at 5:09am
Hi,

Running my application in Debug Mode, it crashes when I moved the mouve over the ribbon bar (after few minutes or seconds).
It crashes in the CXTPCommandBarAnimation::AlphaBlendU(PBYTE pDest, PBYTE pSrcBack, ...) function.
The debugger says that pDest is NULL, so it cannot write on it (line 90):
pDest[0] = (BYTE)((pSrcBack[0] * byDiff + pSrc[0] * byAlpha) >> 8);

Here is the call stack (I renamed the DLL "UID" for short):

  • >    UID.dll!CXTPCommandBarAnimation::AlphaBlendU(unsigned char * pDest=0x00000000, unsigned char * pSrcBack=0x0a470000, int cx=99, int cy=22, unsigned char * pSrc=0x0a460000, unsigned char byAlpha='*')  Ligne 90 + 0x22 octets    C++
  •      UID.dll!CXTPCommandBarAnimation::AnimateRect(CClientDC & dc={...}, CXTPCommandBarAnimation::CAnimateInfo * pai=0x09e8fad0)  Ligne 130    C++
  •      UID.dll!CXTPCommandBarAnimation::AddAnimation(CClientDC & dc={...}, CXTPCommandBarAnimation::CAnimateInfo * pai=0x09e8fad0)  Ligne 206    C++
  •      UID.dll!CXTPCommandBarAnimation::RedrawRect(const tagRECT * lpRect=0x0012efd4, int bAnimate=1)  Ligne 295    C++
  •      UID.dll!CXTPCommandBar::Redraw(const tagRECT * lpRect=0x0012efd4, int bAnimate=1)  Ligne 1313    C++
  •      UID.dll!CXTPControl::RedrawParent(int bAnimate=1)  Ligne 489 + 0x45 octets    C++
  •      UID.dll!CXTPControl::OnSetSelected(int bSelected=0)  Ligne 515    C++
  •      UID.dll!CXTPControlPopup::OnSetSelected(int bSelected=0)  Ligne 179 + 0xc octets    C++
  •      UID.dll!CXTPCommandBar::SetSelected(int nSelected=53, int bKeyboard=0)  Ligne 504 + 0x32 octets    C++
  •      UID.dll!CXTPCommandBar::OnMouseMove(unsigned int __formal=0, CPoint point={...})  Ligne 376 + 0x18 octets    C++
  •      UID.dll!CXTPRibbonBar::OnMouseMove(unsigned int nFlags=0, CPoint point={...})  Ligne 1837    C++
  •      mfc80d.dll!CWnd::OnWndMsg(unsigned int message=512, unsigned int wParam=0, long lParam=5177686, long * pResult=0x0012f84c)  Ligne 2169    C++
  •      UID.dll!CXTPCommandBar::OnWndMsg(unsigned int message=512, unsigned int wParam=0, long lParam=5177686, long * pResult=0x0012f84c)  Ligne 2345    C++
  •      mfc80d.dll!CWnd::WindowProc(unsigned int message=512, unsigned int wParam=0, long lParam=5177686)  Ligne 1741 + 0x20 octets    C++
  •      mfc80d.dll!AfxCallWndProc(CWnd * pWnd=0x06599218, HWND__ * hWnd=0x00050604, unsigned int nMsg=512, unsigned int wParam=0, long lParam=5177686)  Ligne 240 + 0x1c octets    C++
  •      mfc80d.dll!AfxWndProc(HWND__ * hWnd=0x00050604, unsigned int nMsg=512, unsigned int wParam=0, long lParam=5177686)  Ligne 389    C++
  •      mfc80d.dll!AfxWndProcBase(HWND__ * hWnd=0x00050604, unsigned int nMsg=512, unsigned int wParam=0, long lParam=5177686)  Ligne 411 + 0x15 octets    C++



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2007 at 7:53am
Hi,
 
hm. Do you able to reproduce it with our sample?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2007 at 8:31am
Hi Oleg,

Not tested on your sample yet.
I will modify the RibbonMDISample to add skin and see if it happends.
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2007 at 9:29am
I tried by adding skin to the RibbonMDISample and I did not see it crash.

May be it could be linked with the other problem in the CXTPOffice2007FrameHook::RedrawFrame() function...

My application fires truly often at the same point in this function...
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.219 seconds.