Re: 10.6 specific crash
Re: 10.6 specific crash
- Subject: Re: 10.6 specific crash
- From: Ken Ferry <email@hidden>
- Date: Thu, 1 Oct 2009 11:24:35 -0700
On Thu, Oct 1, 2009 at 5:47 AM, Gregory Weston <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden