Ticket URL: <
http://trac.wxwidgets.org/ticket/14650#comment:4>
#14650: wxImage::Scale causes program crash when new size is too large
--------------------------+-------------------------------------------------
Reporter: Jive Dadson | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Resolution: invalid | Keywords: Scale wxCHECK_MSG image.cpp GetData crash
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------
Changes (by vadz):
* status: new => closed
* resolution: => invalid
Comment:
Replying to [comment:3 catalin]:
> First of all I think this is another ticket for which there was no
notification sent by trac.
Yes :-( I hope the OP already saw my comment in #14643:2 and changed his
login name to avoid this in the future.
> About the ticket - AFAICS the code does return an invalid image when an
operation fails. It also asserts which is not at all a "crash".
Absolutely.
> To disable asserts in release build, you can build wxW with DEBUG_FLAG=0
or see wxDisableAsserts() or the one you already discovered
wxSetAssertHandler(NULL).
And neither of those is necessary if you compile your release builds with
`NDEBUG` defined -- as you normally should.
No, not at all.
To the OP: if you have any questions about this, please post to wx-users.
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/14650#comment:4>