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 (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