Re: 10.6 specific crash
Re: 10.6 specific crash
- Subject: Re: 10.6 specific crash
- From: Gregory Weston <email@hidden>
- Date: Thu, 01 Oct 2009 08:47:27 -0400
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].
G
_______________________________________________
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