Crash in CXTPTaskPanelPaintManager::DrawGroupClien |
Post Reply |
Author | |
mrmathis
Senior Member Joined: 17 May 2007 Location: United States Status: Offline Points: 105 |
Post Options
Thanks(0)
Posted: 12 September 2007 at 7:25pm |
I have a case in which I am crashing in CXTPTaskPanelPaintManager::DrawGroupClient because in the line
int nAlpha = pGroup->IsExpanding() ? (255 * rc.Height()) / pGroup->GetExpandedClientHeight() : 255; pGroup->GetExpandedClientHeight() is returning 0, resulting in (surprise) a divide by zero. I installed a little defensive programming in this function to prevent the crash. It may be that I don't have something set up correctly, but a bit more checking in the DrawGroupClient code doesn't seem unreasonable to me. I am running 10.4 and see that the source hasn't changed (in this function, anyway) in 11.1. Has this been fixed in 11.2? |
|
--Mike
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Thanks,
yes it was fixed for 11.2 version. Please replace to
int nAlpha = pGroup->IsExpanding() ? (255 * rc.Height()) / max(1, pGroup->GetExpandedClientHeight()) : 255;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |