• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 10.6 specific crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: 10.6 specific crash
      • From: Ken Ferry <email@hidden>
  • Prev by Date: Re: Deleting CalTasks through an Array.
  • Next by Date: Re: NSValueTransformer problem with NSTextField update
  • Previous by thread: 10.6 specific crash
  • Next by thread: Re: 10.6 specific crash
  • Index(es):
    • Date
    • Thread