Re: crashing in CFStringInitInlineBuffer
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.