• 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: crashing in CFStringInitInlineBuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crashing in CFStringInitInlineBuffer


  • Subject: Re: crashing in CFStringInitInlineBuffer
  • From: Chris Szewzcyk <email@hidden>
  • Date: Wed, 29 May 2002 13:27:13 -0400

You do not appear to be allocating any memory for the CFStringInlineBuffer:

> CFStringInlineBuffer *buff;

But you attempt to use this null pointer in the later method:

> buf->theString = str;
> buf->rangeToBuffer = range;
> buf->directBuffer = CFStringGetCharactersPtr(str);
> buf->bufferedRangeStart = buf->bufferedRangeEnd = 0;

That is where you are getting the EXEC_BAD_ACCESS from, since you are
accessing memory that your application doesn't own.

--Chris Szewczyk
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >crashing in CFStringInitInlineBuffer (From: "Jim Winetke" <email@hidden>)

  • Prev by Date: [Q] Image background color different from NSTableView's background color
  • Next by Date: Re: [Q] Image background color different from NSTableView's background color
  • Previous by thread: Re: crashing in CFStringInitInlineBuffer
  • Next by thread: [Q] Image background color different from NSTableView's background color
  • Index(es):
    • Date
    • Thread