Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Divide by zero in GetStretchIconSize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Divide by zero in GetStretchIconSize

 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: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Divide by zero in GetStretchIconSize
    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.
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.281 seconds.