Divide by zero in GetStretchIconSize |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
Posted: 01 February 2013 at 5:40pm |
I don't know how this occurred by I have a dump file from a customer that shows GetStretchIconSize, being called from DrawControlToolBarParent generating a divide by zero runtime exception.
Looks like it is the line that divides the width by the height (pImage->GetHeight). It might be prudent to examine that code and handle the situation where either the Width() or Height() functions return zero. |
|
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 |