• 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: Problems with NSString: initWithCString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NSString: initWithCString


  • Subject: Re: Problems with NSString: initWithCString
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 28 Mar 2002 12:40:53 +0100

On Thursday, March 28, 2002, at 07:54 , Andrew Baldwin wrote:

searchString = [[NSString alloc] initWithCString:&(aBuffer[2]);

Save that here is a syntactical error so that this would not be compiled..
.

I get the following error when debugging:

"Unable to determine target of Objective-C method call (ignoring):
Error accessing memory address 0x3: Invalid argument"

...this looks like all hell broke before, like some usage of uninitialized pointer wrote over data, and you are seeing only results??? Is the error utterly deterministical?

If you can make a ten-or-so lines programmlet which has the problem as well, send it to me, and I'll have a look.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: 
 >Problems with NSString: initWithCString (From: Andrew Baldwin <email@hidden>)

  • Prev by Date: Re: Font in NSOutlineView (newbie question)
  • Next by Date: Re: Document Loading Problem
  • Previous by thread: Problems with NSString: initWithCString
  • Next by thread: NSCell problems again!
  • Index(es):
    • Date
    • Thread