On Thu, Oct 1, 2009 at 5:47 AM, Gregory Weston <gwes...@mac.com> wrote:
> Duncan Champney wrote: > > An app our company is developing is showing odd behavior and crashes >> under 10.6, but not under 10.5. >> >> I've done some digging and figured out that a major contributor to the >> crash is the following routine: >> >> (I've changed it slightly to get rid of unimportant details and make >> it more readable: >> >> >> -(void) eraseImageRep: (NSBitmapImageRep*) theImageRep; >> { >> NSSize imageSize = [theImageRep size]; >> unsigned long dataSize = [theImageRep bytesPerRow] * imageSize.height; >> void* theData = [theImageRep bitmapData]; >> bzero(theData, dataSize); >> } >> ... >> Does anybody out there have any idea what's going on, and why we are >> seeing different behavior from 10.5 and 10.6? This has me stumped. >> > > Kind of in a rush this morning, but you might want to consider that > [theImageRep size].height is not necessarily the same value as [theImageRep > pixelsHigh]. Yes, this is what jumps out at me. As far as what's different between 10.5 and 10.6… well, much under the hood has changed, not much in the interface. This does mean a latent app bug can be expressed on just one OS or the other. The release notes<http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html>have some information about the implementation changes. If you can reduce your woes to a test app and file a bug, we can try to figure out what's going on. -Ken Cocoa Frameworks _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com