Problem on XTPCommandBarAnimation
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=6516
Printed Date: 23 November 2024 at 2:39pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Problem on XTPCommandBarAnimation
Posted By: gwoin
Subject: Problem on XTPCommandBarAnimation
Date 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++
|
Replies:
Posted By: Oleg
Date Posted: 27 February 2007 at 7:53am
Hi,
hm. Do you able to reproduce it with our sample?
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: gwoin
Date 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.
|
Posted By: gwoin
Date 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...
|
|